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

Do you mean on form submit or on the select of the drop down ?

If you want to run a method on drop down select you may have to use JavaScript to make a call to an endpoint and run your method in that endpoint and return the data you need to JavaScript . If it’s the value on form submit make a post route pointing at your controller method

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Charlie charlie023 Joined 19 Feb 2019

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.