From 274c04bc83cfec3d48a0d3861b2effb43ae8887d Mon Sep 17 00:00:00 2001 From: Niisse Date: Mon, 12 Jun 2023 14:59:45 +0200 Subject: [PATCH] work --- app/Http/Controllers/ProjectsController.php | 37 ++++++++++++++++++++ resources/views/layouts/navigation.blade.php | 2 +- resources/views/projects/index.blade.php | 3 ++ routes/web.php | 16 ++------- 4 files changed, 44 insertions(+), 14 deletions(-) create mode 100644 app/Http/Controllers/ProjectsController.php create mode 100644 resources/views/projects/index.blade.php diff --git a/app/Http/Controllers/ProjectsController.php b/app/Http/Controllers/ProjectsController.php new file mode 100644 index 0000000..ef93b43 --- /dev/null +++ b/app/Http/Controllers/ProjectsController.php @@ -0,0 +1,37 @@ +routeIs('about')">About Me Projects diff --git a/resources/views/projects/index.blade.php b/resources/views/projects/index.blade.php new file mode 100644 index 0000000..abdf60b --- /dev/null +++ b/resources/views/projects/index.blade.php @@ -0,0 +1,3 @@ + + + diff --git a/routes/web.php b/routes/web.php index 0111756..ed4fc1c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,6 @@ name('dashboard'); @@ -26,12 +22,6 @@ Route::get('/about', function () { return view('about'); })->name('about'); -// ->middleware(['auth', 'verified'])->name('dashboard'); - -//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'); -//}); +Route::resource('/projects', ProjectsController::class); -require __DIR__.'/auth.php'; +require __DIR__ . '/auth.php';