I think you must cast $category as an array like this $category->toArray(), because $category from your controller return a collection and not an array, as it need in your 2snd parameter in Form::select() helper.
It works fine for me
jay4yam said:
I think you must cast $category as an array like this $category->toArray(), because $category from your controller return a collection and not an array, as it need in your 2snd parameter in Form::select() helper.
It works fine for me
I'll try that, Thanks.
Thank you jay4yam, :) It works now :) It's a big help, have a nice day
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community