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'); }