Support the ongoing development of Laravel.io →
Requests Database Forms
Last updated 1 year ago.
0

I can't figure out how to make Laravel select the right value in the select box. My select box allways shows the default >value instead of the value related to the object I pass to the view.>catherine111 said:

I think you're doing the right thing by passing the third parameter to the select to have the default value chosen. I would check to make sure that the value that is being passed is of the same type as the options values (not labels).

Last updated 1 year ago.
0

You got it! Thanks a lot. Guess I was very tired when I tried to solve this :-D

Question 2 is solved, has anyone an idea for my first question?

Thanks folks!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.