mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-30 15:30:51 -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:
@@ -84,7 +84,7 @@ class UserController extends Controller
|
||||
Unit3dAnnounce::addUser($user);
|
||||
|
||||
return to_route('users.show', ['user' => $user])
|
||||
->withSuccess('Account Was Updated Successfully!');
|
||||
->with('success', 'Account Was Updated Successfully!');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,7 +107,7 @@ class UserController extends Controller
|
||||
Unit3dAnnounce::addUser($user);
|
||||
|
||||
return to_route('users.show', ['user' => $user])
|
||||
->withSuccess('Account Permissions Successfully Edited');
|
||||
->with('success', 'Account Permissions Successfully Edited');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -171,7 +171,7 @@ class UserController extends Controller
|
||||
Unit3dAnnounce::removeUser($user);
|
||||
|
||||
return to_route('staff.dashboard.index')
|
||||
->withSuccess('Account Has Been Removed');
|
||||
->with('success', 'Account Has Been Removed');
|
||||
}
|
||||
|
||||
return to_route('staff.dashboard.index')
|
||||
|
||||
Reference in New Issue
Block a user