Role ENUM('Admin','User')
class UsersSeeder extends Seeder { public function run() { $data = [ ['username' => 'admin', 'passwd' => '1234', 'role' => 1 ], [ 'username' => 'user', 'passwordd' => '1234', 'role' => 2 ] ]; $this->db->table('tblusers')->insertBatch($data); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)