/** * Run the database seeds. * * @return void */ public function run() { Role::insert(['description' => 'CLIENT']); Role::insert(['description' => 'SALESMAN']); Role::insert(['description' => 'PROMOTER']); Role::insert(['description' => 'ADMIN']); }
public function run() { DB::table('roles')->delete(); Role::insert([['name' => 'Administrator', 'created_at' => date('Y-m-d H:s:i'), 'updated_at' => date('Y-m-d H:s:i')], ['name' => 'Buyer', 'created_at' => date('Y-m-d H:s:i'), 'updated_at' => date('Y-m-d H:s:i')]]); }
/** * */ public function run() { Role::truncate(); $data = [["name" => "Admin"], ["name" => "Customer"]]; Role::insert($data); }
/** * Run the database seeds. * * @return void */ public function run() { Role::truncate(); $data = [['name' => 'admin'], ['name' => 'staf'], ['name' => 'member']]; Role::insert($data); }