mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-07 19:49:59 -05:00
refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.
Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
This commit is contained in:
@@ -86,7 +86,7 @@ class ClaimedPrizeController extends Controller
|
||||
'fl_tokens' => $fl_tokens_won,
|
||||
]);
|
||||
|
||||
return to_route('events.show', ['event' => $event])->withSuccess('Congrats! You have won a prize!');
|
||||
return to_route('events.show', ['event' => $event])->with('success', 'Congrats! You have won a prize!');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user