Commit 7475bcd3 authored by Jakobud's avatar Jakobud

Added documentation for the @render() Blade method

Signed-off-by: 's avatarJakobud <jake.e.wilson@gmail.com>
parent 5c3ede74
...@@ -69,13 +69,16 @@ Blade makes writing your views pure bliss. To create a blade view, simply name y ...@@ -69,13 +69,16 @@ Blade makes writing your views pure bliss. To create a blade view, simply name y
{{ Asset::styles() }} {{ Asset::styles() }}
#### Rendering a view: #### Render a view:
<h1>Profile</hi> You can use **@include** to render a view into another view. The rendered view will automatically inherit all of the data from the current view.
<h1>Profile</hi>
@include('user.profile') @include('user.profile')
> **Note:** When using the **@include** Blade expression, the view will automatically inherit all of the current view data. Similarly, you can use **@render**, which behaves the same as **@include** except the rendered view will **not** inherit the data from the current view.
@render('admin.list')
#### Creating loops using Blade: #### Creating loops using Blade:
......
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