Support the ongoing development of Laravel.io →
Eloquent Views Blade
Last updated 2 years ago.
0

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.

0

I don't have a route and that is all I have in the controller

Last updated 9 years ago.
0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

dendic dendic Joined 30 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.