mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-29 23:09:42 -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 PlaylistController extends Controller
|
||||
}
|
||||
|
||||
return to_route('playlists.show', ['playlist' => $playlist])
|
||||
->withSuccess(trans('playlist.published-success'));
|
||||
->with('success', trans('playlist.published-success'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -162,7 +162,7 @@ class PlaylistController extends Controller
|
||||
}
|
||||
|
||||
return to_route('playlists.show', ['playlist' => $playlist])
|
||||
->withSuccess(trans('playlist.update-success'));
|
||||
->with('success', trans('playlist.update-success'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -179,6 +179,6 @@ class PlaylistController extends Controller
|
||||
$playlist->delete();
|
||||
|
||||
return to_route('playlists.index')
|
||||
->withSuccess(trans('playlist.deleted'));
|
||||
->with('success', trans('playlist.deleted'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user