permission.php 1.0 KB

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