env('APP_HOST'), 'prefix' => 'admin/userRole'],function(){ Route::get('index', 'UserRolesController@index')->name('admin.userRole.index'); Route::post('index', 'UserRolesController@index')->name('admin.userRole.ajax.index'); Route::get('store','UserRolesController@store')->name('admin.userRole.store'); Route::post('store','UserRolesController@store')->name('admin.userRole.save'); Route::post('destroy/{id?}','UserRolesController@destroy')->name('admin.userRole.destroy'); Route::post('destroys','UserRolesController@destroys')->name('admin.userRole.destroys'); Route::get('edit/{id?}','UserRolesController@edit')->name('admin.userRole.edit'); Route::post('update/{id?}','UserRolesController@update')->name('admin.userRole.update'); }); Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'userRole'],function (){ Route::post('list', 'Front\\UserRolesController@index'); });