/** * Create the layout that is assigned to the controller. * * @return View */ public function layout() { if (starts_with($this->layout, 'name: ')) { return View::of(substr($this->layout, 6)); } return View::make($this->layout); }