Laravel - Routes


How can we use a route inside our view?

<form action="{{ route('signup') }}" method="post">

How can our controller method redirect the user to another route?

return redirect()->route('dashboard');

How can we protect access for certain routes?

Specifies the 'middleware' => 'auth' to our route or add a new route group and put all the routes that need protection inside this group.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License