11 lines
449 B
PHP
11 lines
449 B
PHP
|
<?php
|
||
|
|
||
|
use App\Http\Controllers\RolesController;
|
||
|
use Illuminate\Support\Facades\Route;
|
||
|
|
||
|
Route::prefix("roles")->group(function () {
|
||
|
Route::resource('/roles', RolesController::class);
|
||
|
Route::post('/roles/{role}/permissions', [RolesController::class, 'givePermission'])->name('roles.permissions');
|
||
|
Route::delete('/roles/{role}/permissions/{permission}', [RolesController::class, 'revokePermission'])->name('roles.permissions.revoke');
|
||
|
});
|