mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
lint: use to_route helper
This commit is contained in:
@@ -65,7 +65,7 @@ class EventController extends Controller
|
||||
public function destroy(Event $event): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
if ($event->claimedPrizes()->exists()) {
|
||||
return redirect()->route('staff.events.index')
|
||||
return to_route('staff.events.index')
|
||||
->withErrors('Cannot delete event because users have claimed prizes. You can mark it as inactive instead.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user