mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-04 17:30:27 -05:00
refactor: swap where('id', '=', ) for find()
This commit is contained in:
@@ -55,7 +55,7 @@ class ChatBotController extends Controller
|
||||
*/
|
||||
public function update(UpdateChatBotRequest $request, int $id): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
Bot::where('id', '=', $id)->update($request->validated());
|
||||
Bot::findOrFail($id)->update($request->validated());
|
||||
|
||||
return to_route('staff.bots.edit', ['id' => $id])
|
||||
->withSuccess("The Bot Has Been Updated");
|
||||
|
||||
Reference in New Issue
Block a user