Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Baakoma committed Oct 28, 2024
1 parent afa7902 commit a6c8069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/UserHistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function store(UserHistoryRequest $request, User $user): RedirectResponse
$user->histories()->create($request->data());

return redirect()
->back("users.history", $user)
->route("users.history", $user)
->with("success", __("User history created."));
}

Expand Down Expand Up @@ -81,7 +81,7 @@ public function destroy(UserHistory $history): RedirectResponse
$history->delete();

return redirect()
->back()
->route("users.history", $history->user_id)
->with("success", __("User history deleted."));
}
}

0 comments on commit a6c8069

Please sign in to comment.