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:
Roardom
2025-01-21 15:50:49 +00:00
parent 90d2741605
commit 868ad35aa4
99 changed files with 239 additions and 239 deletions
@@ -71,6 +71,6 @@ class PostTipController extends Controller
$tip->recipient->notify((new NewPostTip($tip))->afterCommit());
});
return redirect()->back()->withSuccess(trans('bon.success-tip'));
return redirect()->back()->with('success', trans('bon.success-tip'));
}
}