ochirach's avatar

Generate url from Controller to view

Hi.

Version: 5.4

How can I send a full url of a route from the controller to the view?

e.g from

$user_url = "\users\UserController@functionNameHere";

to

$user_url="http:://www.site.com/.........";

I want to display specific form actions depending on various user demographics by dynamically using the appropriate action url

0 likes
1 reply
Yorki's avatar
Yorki
Best Answer
Level 11
action('UserController@functionNameHere', ['id' => 1])

Please or to participate in this conversation.