This doesn't appear to be all of your code - you need to ensure that you're passing the $boxstyles variable to your view (it doesn't exist in the view - hence the error). Show us your full route/controller, which will help a lot more.
I don't have a route and that is all I have in the controller
I tried with this route:
View::composer('Moves.TestDialog', function($view) { $boxstyle = boxstyles::all(); $boxstyle_options = array($boxstyle->lists('id'), $boxstyle->lists('boxstyle')); $view->with('boxstyle_options', $boxstyle_options); }); Problem is the same
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community