1 year ago

Route to controller

Posted 1 year ago by kordix

In symfony I could make routing just inside the controller, just by setting the route above the controller method, I didn't have to set routes in seperate file.

But I think about slightly different thing, I want to execute the method directly in the view, something like href={{route(name)}}, but it should be something like {{controller('methodname')}}

Do I have to set every single method I use in web.php file?

Please sign in or create an account to participate in this conversation.