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?
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community