mercredi 26 décembre 2018

How in laravel 5.7 to run several urls on the same control action?

Which is valid way in laravel 5.7 to run several urls on the same control action, like

Route::get('about', array(
    'as'      => 'page-about',
    'uses'    => 'PageController@page_content'
))->AdditiveParameter('about');



Route::get('security', array(
    'as'      => 'page-security',
    'uses'    => 'PageController@page_content'
))->AdditiveParameter('security');

and In PageController page_content action have 1 required parameter ?

Thanks!



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Ajka0T
via IFTTT

Aucun commentaire:

Enregistrer un commentaire