$data = [
'role_name' => 'user',
'role_description'=>'The Default Role for User'
];
// Simple Queries
$this->db->query("INSERT INTO tbl_roles (role_name, role_description) VALUES(:role_name:, :role_description:)",
$data
);
> php spark db:seed TestSeeder
<?php namespace AppDatabaseSeeds;
class TestSeeder extends CodeIgniterDatabaseSeeder
{
public function run()
{
$this->call('UserSeeder');
$this->call('CountrySeeder');
$this->call('JobSeeder');
}
}