Friday, 12 May 2017

Possible Ways of Naming Route

Calling by giving snake case

Route::resource('patron_profile','Setting\Library\PatronProfileController');
route('patron_profile.index');


Calling by giving an alias


Route::resource('profile','Setting\Library\PatronProfileController',[
          'as' => 'patron'
        ]);
route('patron.profile.index');




No comments:

Post a Comment