From 75fdf128c483f7cb8c82a6686ce6697955555a99 Mon Sep 17 00:00:00 2001 From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:57:36 +0800 Subject: [PATCH] Update ProjectController.php --- app/Http/Controllers/ProjectController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php index 5877c736..d03689f9 100644 --- a/app/Http/Controllers/ProjectController.php +++ b/app/Http/Controllers/ProjectController.php @@ -27,6 +27,8 @@ public function mass_update(Request $request) // Insert Eloquent statement below + Project::where('name',$request->old_name)->update(['name'=>$request->new_name]); + return redirect('/')->with('success', 'Projects updated'); }