mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 08:19:33 -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:
@@ -44,7 +44,7 @@ class PlaylistTorrentController extends Controller
|
||||
$playlistTorrent->torrent()->searchable();
|
||||
|
||||
return to_route('playlists.show', ['playlist' => $playlist])
|
||||
->withSuccess(trans('playlist.attached-success'));
|
||||
->with('success', trans('playlist.attached-success'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -74,7 +74,7 @@ class PlaylistTorrentController extends Controller
|
||||
$playlist->torrents()->searchable();
|
||||
|
||||
return to_route('playlists.show', ['playlist' => $playlist])
|
||||
->withSuccess(trans('playlist.attached-success'));
|
||||
->with('success', trans('playlist.attached-success'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,6 +91,6 @@ class PlaylistTorrentController extends Controller
|
||||
$playlistTorrent->torrent()->searchable();
|
||||
|
||||
return to_route('playlists.show', ['playlist' => $playlistTorrent->playlist])
|
||||
->withSuccess(trans('playlist.detached-success'));
|
||||
->with('success', trans('playlist.detached-success'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user