You should be able to do @include('frontend.layouts.footer')->with('franchises', Franchise::all())
.
Update:
To avoid the model in the view, you should use a view composer, as it was stated in a previous answer.
View::composer('frontend.layouts.footer', function($view)
{
$view->with('franchises', Franchise::all());
});
Now you have $franchises
available in the view. This code you can place in routes.php
or you can create a composers.php
and autoload it.