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

so what's the question?

Last updated 2 years ago.
0

moon0326 said:

so what's the question?

Hello how do you do it right,

i dont know how to code it right in laravel. I will call the method with many parameter if i click the button on the blade.

Can i call a normal custom function (not controller methods) directly from the blade if i click a button?

Last updated 2 years ago.
0

ah..I see what you mean.

No. You can't call a method in PHP from a template. However, you can use javascript to call the method using AJAX.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

maleeb maleeb Joined 17 Apr 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.