/** * Run the database seeds. * * @return void */ public function run() { DB::table('menu_items')->delete(); $sectionOne = MenuSection::find(1); $sectionTwo = MenuSection::find(2); MenuItem::create(['name' => 'Item One', 'sort_id' => 1, 'price_one' => 9.5, 'description' => 'Aenean ultricies mi vitae est. Mauris placerat eleifend leo.', 'section_id' => $sectionOne->id]); MenuItem::create(['name' => 'Item Two', 'sort_id' => 2, 'price_one' => 9.5, 'section_id' => $sectionOne->id]); MenuItem::create(['name' => 'Item Three', 'sort_id' => 1, 'price_one' => 9.5, 'price_two' => 15.5, 'section_id' => $sectionTwo->id]); MenuItem::create(['name' => 'Item Four', 'sort_id' => 2, 'price_one' => 9.5, 'price_two' => 15.5, 'description' => 'Aenean ultricies mi vitae est. Mauris placerat eleifend leo.', 'section_id' => $sectionTwo->id]); }
/** * Run the database seeds. * * @return void */ public function run() { DB::table('menu_sections')->delete(); MenuSection::create(['name' => 'Section One', 'sort_id' => 1]); MenuSection::create(['name' => 'Section Two', 'sizes' => 2, 'sort_id' => 2, 'info_title' => 'Toppings', 'info' => 'Pepperoni, Olives, Peppers, Ham, Chicken, Eggplant, Sausage, Pinapple, Pepperoni, Olives, Peppers, Ham, Chicken, Eggplant, Sausage, Pinapple']); }