create two permissions for azmayesh panel

This commit is contained in:
2024-11-18 11:37:30 +03:30
parent 70ae888238
commit 2f45671c05
17 changed files with 566 additions and 77 deletions

View File

@@ -38,6 +38,7 @@ Route::prefix('profile')
Route::prefix('azmayesh_types')
->name('azmayesh_types.')
->middleware('can:azmayesh-type-management')
->controller(AzmayeshTypeController::class)
->group(function () {
Route::get('/', 'index')->name('index');
@@ -51,6 +52,7 @@ Route::prefix('azmayesh_types')
Route::prefix('azmayesh_samples')
->name('azmayesh_samples.')
->middleware('can:azmayesh-management')
->controller(AzmayeshSampleController::class)
->group(function () {
Route::get('/index/{azmayesh_id}', 'index')->name('index');
@@ -62,6 +64,7 @@ Route::prefix('azmayesh_samples')
Route::prefix('azmayeshes')
->name('azmayeshes.')
->middleware('can:azmayesh-management')
->controller(AzmayeshController::class)
->group(function () {
Route::get('/', 'index')->name('index');