You can use something like this in BaseController
protected function setupLayout()
{
// Share data through views
View::share('data', $dataFromBaseController);
}
And then, in the all views you can use {{$data}} to show $dataFromBaseController value
Sorry my poor english.
This may help,
Try this,
return View::make('dashboard-default', compact('data','messages'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community