/** * Run the database seeds. * * @return void */ public function run() { $types = [['name' => 'Multimedia (Installations) & Performances', 'slug' => 'multimedia-performances'], ['name' => 'Music', 'slug' => 'music'], ['name' => 'Photography', 'slug' => 'photography'], ['name' => 'Video', 'slug' => 'video'], ['name' => 'Acting', 'slug' => 'acting']]; foreach ($types as $_type) { $type = \App\WorkType::create($_type); } }
/** * Run the database seeds. * * @return void */ public function run() { DB::table('work_types')->truncate(); WorkType::create(['id' => 1, 'name' => 'Full Day']); WorkType::create(['id' => 2, 'name' => 'Half Day']); WorkType::create(['id' => 3, 'name' => 'Work From Home']); }