web.php 540 B

123456789101112131415161718192021222324
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::get('/', 'PanelController@index')->name('panel');
  4. Route::namespace('Authorization')->group(function () {
  5. Route::resource('/permissions', 'PermissionsController')
  6. ->except(['show']);
  7. Route::resource('/roles', 'RolesController')
  8. ->except(['show']);
  9. Route::resource('/roles-assignment', 'RolesAssignmentController')
  10. ->only(['index', 'edit', 'update']);
  11. });
  12. Route::resource('/account', 'Account\AccountController')
  13. ->only( 'edit', 'update');