Skip to content

Commit

Permalink
Remove route group: namespace
Browse files Browse the repository at this point in the history
Since Laravel 8, this has been deprecated

laravel/docs@0430252
  • Loading branch information
realodix committed Dec 26, 2024
1 parent 13d2d5d commit 736d489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Route::get('/+{url:keyword}', [UrlController::class, 'showDetail'])->name('link_detail');
Route::get('/delete/{url:keyword}', [UrlController::class, 'delete'])->name('link_detail.delete');

Route::namespace('Dashboard')->prefix('admin')->group(function () {
Route::prefix('admin')->group(function () {
Route::middleware(['auth', 'auth.session'])->group(function () {
// Dashboard (My URLs)
Route::get('/', [DashboardController::class, 'view'])->name('dashboard');
Expand All @@ -26,7 +26,7 @@
Route::get('/links/u/{user:name}', [DashboardController::class, 'userLinkView'])->name('dboard.allurl.u-user');

// User
Route::namespace('User')->prefix('user')->group(function () {
Route::prefix('user')->group(function () {
Route::get('/', [UserController::class, 'view'])->name('user.index');
Route::get('{user:name}/edit', [UserController::class, 'edit'])->name('user.edit');
Route::post('{user:name}/edit', [UserController::class, 'update'])->name('user.update');
Expand Down

0 comments on commit 736d489

Please sign in to comment.