Skip to content

Commit

Permalink
fix route issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Bak committed Jul 31, 2024
1 parent 0fc3222 commit 5c58a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
|
*/

Route::prefix('admin')->as('admin.')->group(function () {
Route::prefix('admin')->as('admin.')->middleware(['auth', 'can:access dashboard'])->group(function () {
Route::get('/', \App\Livewire\Admin\Dashboard::class)->name('dashboard');
Route::get('users', \App\Livewire\Admin\Users::class)->name('users')->middleware('can:view users');
Route::delete('users/{user}', \App\Livewire\Admin\Users::class)->name('users.delete')->middleware('can:delete users');
Expand Down

0 comments on commit 5c58a2a

Please sign in to comment.