Commit 8bd740d1 authored by Taylor Otwell's avatar Taylor Otwell

added support for named layouts.

parent 3c016285
......@@ -293,6 +293,11 @@ abstract class Controller {
*/
public function layout()
{
if (starts_with($this->layout, 'name: '))
{
return View::of(substr($this->layout, 6));
}
return View::make($this->layout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment