web.php 774 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
  4. \UniSharp\LaravelFilemanager\Lfm::routes();
  5. });
  6. Route::get('/', 'PanelController@index')->name('panel');
  7. Route::namespace('Authorization')->group(function () {
  8. Route::resource('/permissions', 'PermissionsController')
  9. ->except(['show']);
  10. Route::resource('/roles', 'RolesController')
  11. ->except(['show']);
  12. Route::resource('/roles-assignment', 'RolesAssignmentController')
  13. ->only(['index', 'edit', 'update']);
  14. });
  15. Route::resource('/account', 'Account\AccountController')
  16. ->only( 'edit', 'update');
  17. //categories *****
  18. Route::resource('/categories', 'Categories\CategoryController');