I want to render a partial view using:
@include('partial.view', array('view_data' => $view_data))
Now on this view I have a view composer:
View::composer('partial.view', 'TheController@theMethod');
The variable $view_data is visible inside the view, but not inside the view composer method that renders before the view.
I want to access $view_data (passed through @include) inside the @theMethod method. How can I achieve this? Maybe there is a different approach?