protected function create($name, $shortcut, $description, $is_home) { return Page::create(['name' => $name, 'shortcut' => $shortcut, 'description' => $description, 'is_home' => $is_home, 'template_id' => Template::first()->id]); }
protected function create($templateIdentifier, $name, $type, $shortcut, $description) { return Page::create(['name' => $name, 'type' => $type, 'shortcut' => $shortcut, 'description' => $description, 'template_id' => Template::whereIdentifier($templateIdentifier)->first()->id]); }