diff --git a/routes/settings.php b/routes/settings.php index 95031371..2f6aef8d 100644 --- a/routes/settings.php +++ b/routes/settings.php @@ -15,7 +15,5 @@ Route::get('settings/password', [PasswordController::class, 'edit'])->name('password.edit'); Route::put('settings/password', [PasswordController::class, 'update'])->name('password.update'); - Route::get('settings/appearance', function () { - return Inertia::render('settings/appearance'); - })->name('appearance'); + Route::get('settings/appearance', fn () => Inertia::render('settings/appearance'))->name('appearance'); }); diff --git a/routes/web.php b/routes/web.php index 5e4cebdf..bc7f2f99 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,14 +3,10 @@ use Illuminate\Support\Facades\Route; use Inertia\Inertia; -Route::get('/', function () { - return Inertia::render('welcome'); -})->name('home'); +Route::get('/', fn () => Inertia::render('welcome'))->name('home'); Route::middleware(['auth', 'verified'])->group(function () { - Route::get('dashboard', function () { - return Inertia::render('dashboard'); - })->name('dashboard'); + Route::get('dashboard', fn () => Inertia::render('dashboard'))->name('dashboard'); }); require __DIR__.'/settings.php';