1.

How to create route name in Laravel 5?

Answer»

You can create this by "NAME" ATTRIBUTE in your routes/web.php.

Below is an example

Route::get('CONTACT-us', '[email protected]')->name('contact');
In this example our route name is contact. You can call this route URL with this route name ALSO.

&LT;a href="{{route('contact')}}"> Go to Contact page </a>



Discussion

No Comment Found