diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php new file mode 100644 index 0000000..7f45c41 --- /dev/null +++ b/app/Http/Controllers/ProfileController.php @@ -0,0 +1,19 @@ +id === auth()->user()->id) - + name("images.store"); // likes Route::post("/posts/{post}/likes", [LikeController::class, "store"])->name("posts.likes.store"); Route::delete("/posts/{post}/likes", [LikeController::class, "destroy"])->name("posts.likes.destroy"); + +// profile +Route::get("/{user:username}/edit-profile", [ProfileController::class, "index"])->name("profile.index"); +Route::post("/{user:username}/edit-profile", [ProfileController::class, "store"])->name("profile.store");