Laravel 5 Pass Variables to Master Template
use AppServiceProvider.
public function boot()
{
view()->composer('layouts.master', function($view)
{
$view->with('variable', 'myvariable');
});
}
use AppServiceProvider.
public function boot()
{
view()->composer('layouts.master', function($view)
{
$view->with('variable', 'myvariable');
});
}