123456789101112131415161718192021 |
- <?php
- use Illuminate\Support\Facades\Route;
- Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/permission', 'middleware' => 'permission'],function(){
- Route::get('index', 'PermissionsController@index')->name('admin.permission.index');
- Route::post('index', 'PermissionsController@index')->name('admin.permission.ajax.index');
- Route::get('store','PermissionsController@store')->name('admin.permission.store');
- Route::post('store','PermissionsController@store')->name('admin.permission.save');
- Route::post('destroy/{id?}','PermissionsController@destroy')->name('admin.permission.destroy');
- Route::post('destroys','PermissionsController@destroys')->name('admin.permission.destroys');
- Route::get('edit/{id?}','PermissionsController@edit')->name('admin.permission.edit');
- Route::post('update/{id?}','PermissionsController@update')->name('admin.permission.update');
- });
- Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'permission'],function (){
- Route::post('list', 'Front\\PermissionsController@index');
- });
|