From 8b2c3d44fa9aa6685aa966ff47bc509fc2e165d9 Mon Sep 17 00:00:00 2001 From: Toy Rik Date: Wed, 11 Feb 2026 14:29:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BB=D0=BE=D0=B3=D0=B0=D1=83=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Http/Controllers/DashboardController.php | 5 ++++- src/resources/views/dashboard.blade.php | 6 +++++- src/routes/web.php | 7 ++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/app/Http/Controllers/DashboardController.php b/src/app/Http/Controllers/DashboardController.php index 2de2168..3e8d294 100644 --- a/src/app/Http/Controllers/DashboardController.php +++ b/src/app/Http/Controllers/DashboardController.php @@ -6,5 +6,8 @@ namespace App\Http\Controllers; class DashboardController extends Controller { - // + public function index() + { + return view('dashboard'); + } } diff --git a/src/resources/views/dashboard.blade.php b/src/resources/views/dashboard.blade.php index eb13808..221d3c7 100644 --- a/src/resources/views/dashboard.blade.php +++ b/src/resources/views/dashboard.blade.php @@ -2,5 +2,9 @@ @section ('content')

dashboard

-@dump(auth()->user()) + +
+ @csrf + +
@endsection \ No newline at end of file diff --git a/src/routes/web.php b/src/routes/web.php index 7772c2d..85dfa6d 100644 --- a/src/routes/web.php +++ b/src/routes/web.php @@ -2,12 +2,13 @@ declare(strict_types=1); +use App\Http\Controllers\DashboardController; use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('main'); }); -Route::get('dashboard', function () { - return view('dashboard'); -})->middleware(['auth', 'verified']); +Route::middleware(['auth', 'verified'])->group(function () { + Route::get('/dashboard', [DashboardController::class, 'index']); +});