From c6ebf685bfa7cc788ddfbb2ab54805c6f2b376a4 Mon Sep 17 00:00:00 2001 From: Tobias Orterer Date: Mon, 18 Jun 2012 21:55:35 -0700 Subject: [PATCH] Added important note about @layout on first line leads to confusion if not pointed out. --- laravel/documentation/views/templating.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/documentation/views/templating.md b/laravel/documentation/views/templating.md index 8849f0e1..a2273c19 100644 --- a/laravel/documentation/views/templating.md +++ b/laravel/documentation/views/templating.md @@ -164,6 +164,8 @@ ## Blade Layouts The profile view will automatically use the "master" template thanks to Blade's **@layout** expression. +**Important:** The **@layout** call must always be on the very first line of the file, with no leading whitespaces or newline breaks. + Sometimes you may want to only append to a section of a layout rather than overwrite it. For example, consider the navigation list in our "master" layout. Let's assume we just want to append a new list item. Here's how to do it: @layout('master')