laravel multiple environments code example
Example 1: laravel multiple paginate
# use default 'page' for this
$collection1 = Model::paginate(20);
# use custom 'other_page' for this
$collection2 = Model2::paginate(20);
$collection2->setPageName('other_page');
Example 2: laravel route multiple methods
Route::match(['get', 'post'], '/user', [
'uses' => 'AppController@user',
'as' => 'useraccess',
'roles'=> 'HomeController@useroles',
]);