role.php 978 B

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