Beispiel #1
0
 public function run()
 {
     $common = Layout::create(['name' => 'test', 'path' => 'site.test']);
     $common->save();
     $list = Layout::create(['name' => 'test-list', 'path' => 'site.test-list']);
     $list->save();
 }
Beispiel #2
0
 public function run()
 {
     $type = Type::create(['name' => 'test', 'alias' => 'test', 'enable_in_menu' => true, 'enable_own_layout' => false, 'type_layout_id' => Layout::where('name', 'test')->first()->id, 'list_layout_id' => Layout::where('name', 'test-list')->first()->id, 'type_in_menu' => false]);
     $type->save();
 }