Laravel Blade - pass variable via an @include or @yield
I need to pass a variable to an included Blade file. I have attempted this two-ways; however, neither have been successful. Pass a variable, title , to the included file: @section('left') @include('modal', ['title' => 'Hello']) @stop Use @yield and set the section: @section('left') @include('modal') @section('title') Hello @stop @stop I am using Laravel 4.2. I am unaware if what I am trying to do is possible, but I imagine it is. According to the documentation , the include -way should be the way to do it: Including Sub-Views @include('view.name') You may also pass an array of data to the