2024-01-10 12:57:24 +03:00
|
|
|
<?php
|
|
|
|
|
2024-01-10 14:00:03 +03:00
|
|
|
use App\Http\Controllers\ProfileController;
|
2024-01-10 12:57:24 +03:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2024-01-10 14:00:03 +03:00
|
|
|
Route::get('/dashboard', function () {
|
2024-01-19 10:48:00 +03:00
|
|
|
return view('admin');
|
2024-02-08 18:34:45 +03:00
|
|
|
})->prefix('admin')->middleware(['auth', 'verified'])->name('dashboard');
|
2024-01-10 14:00:03 +03:00
|
|
|
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
|
|
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
|
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
|
|
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
|
|
});
|
|
|
|
|
2024-01-11 17:05:53 +03:00
|
|
|
require __DIR__ . '/auth.php';
|
2024-02-07 16:32:42 +03:00
|
|
|
require __DIR__ . '/admin.php';
|
|
|
|
require __DIR__ . '/pages/web.php';
|