kordix

Route to controller

Posted 10 months 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.

Reply to

Use Markdown with GitHub-flavored code blocks.