You will need to pass the data with the include for the partial to use the data,
@include('layouts.role', array('admin'=>$admin, 'group_super_user'=>$group_super_user,'user'=>$user))
Apparently I can't edit the previous post ....
I actually read your post wrong.
I don't think you can set a variable in the partial and have it be passed back to the parent.
You should probably set these variables in a controller or view composer and pass them along to the appropriate views.
View::share() could solve that. http://laravel.com/docs/4.2/responses#views
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community