Skip to content

Commit

Permalink
Update ProjectController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Jan 11, 2024
1 parent 44ccdfa commit 75fdf12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 75fdf12

Please sign in to comment.