Urls laravel with alias

0

I have the following url

Route::get('faq', 'HomeController@faq');

link

I want to add an alias to that url so that when I log in I stay like this

link

but refining the url "faq" I do not know if the .htaccess can be

    
asked by Oscar Diaz 25.09.2017 в 16:27
source

1 answer

0

In Laravel 5.1 it was like this:

Route::get( 'faq' , 'HomeController@faq' );
Route::get( 'preguntas-frecuentes', [ 'as' => 'faq', 'uses' => 'HomeController@faq' ]);
    
answered by 25.09.2017 / 16:38
source