userRole.php 996 B

123456789101112131415161718192021
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/userRole'],function(){
  4. Route::get('index', 'UserRolesController@index')->name('admin.userRole.index');
  5. Route::post('index', 'UserRolesController@index')->name('admin.userRole.ajax.index');
  6. Route::get('store','UserRolesController@store')->name('admin.userRole.store');
  7. Route::post('store','UserRolesController@store')->name('admin.userRole.save');
  8. Route::post('destroy/{id?}','UserRolesController@destroy')->name('admin.userRole.destroy');
  9. Route::post('destroys','UserRolesController@destroys')->name('admin.userRole.destroys');
  10. Route::get('edit/{id?}','UserRolesController@edit')->name('admin.userRole.edit');
  11. Route::post('update/{id?}','UserRolesController@update')->name('admin.userRole.update');
  12. });
  13. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'userRole'],function (){
  14. Route::post('list', 'Front\\UserRolesController@index');
  15. });