master_template/routes/route.permissions.php
2024-06-23 17:02:56 +05:45

10 lines
369 B
PHP

<?php
use App\Http\Controllers\PermissionsController;
use Illuminate\Support\Facades\Route;
Route::prefix("permissions")->group(function () {
Route::resource('/permissions', PermissionsController::class);
Route::get('/generate-permissions', [PermissionsController::class, 'generatePermissionFromRoutes'])->name('permission.generatePermissionFromRoutes');
});