Kevin.a Kevin.a - 1 year ago 123
PHP Question

Laravel link_to_route function

I have this bit of code:

<li> {!! link_to_route('get_register', 'Register' ) !!} </li>

As you can see i used the link_to_route function. I defined this Route in this bit of code:

Route::group (['prefix' => 'auth'], function() {

'as' => 'get_register',
'uses' => 'Auth\AuthController@get_register'

'as' => 'post_register',
'uses' => 'Auth\AuthController@post_register'


Now when i go to my page in the browser i get the following error:

Anything that could help would be highly appreciated.

Thanks in advance,


Answer Source

You can use a

<a href="{{ route('get_register') }}">Register</a>

I hope this help

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download