mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-01 16:00:53 -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:
@@ -76,7 +76,7 @@ class ApplicationController extends Controller
|
||||
Mail::to($application->email)->send(new InviteUser($invite));
|
||||
|
||||
return to_route('staff.applications.index')
|
||||
->withSuccess('Application Approved');
|
||||
->with('success', 'Application Approved');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,6 +94,6 @@ class ApplicationController extends Controller
|
||||
Mail::to($application->email)->send(new DenyApplication($request->deny));
|
||||
|
||||
return to_route('staff.applications.index')
|
||||
->withSuccess('Application Rejected');
|
||||
->with('success', 'Application Rejected');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user