mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 06:57:58 +01:00
Global Facades
This commit is contained in:
parent
b8fa6cb1f7
commit
2a62eaa50a
94 changed files with 202 additions and 202 deletions
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class AddTrackToPlaylistCommand extends CommandBase
|
class AddTrackToPlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace App\Commands;
|
||||||
use App\Models\Album;
|
use App\Models\Album;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateAlbumCommand extends CommandBase
|
class CreateAlbumCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Announcement;
|
use App\Models\Announcement;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateAnnouncementCommand extends CommandBase
|
class CreateAnnouncementCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,9 +25,9 @@ use App\Models\Comment;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateCommentCommand extends CommandBase
|
class CreateCommentCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateGenreCommand extends CommandBase
|
class CreateGenreCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreatePlaylistCommand extends CommandBase
|
class CreatePlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateShowSongCommand extends CommandBase
|
class CreateShowSongCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class CreateUserCommand extends CommandBase
|
class CreateUserCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Album;
|
use App\Models\Album;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
|
|
||||||
class DeleteAlbumCommand extends CommandBase
|
class DeleteAlbumCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Jobs\DeleteGenre;
|
use App\Jobs\DeleteGenre;
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class DeleteGenreCommand extends CommandBase
|
class DeleteGenreCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
class DeletePlaylistCommand extends CommandBase
|
class DeletePlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Jobs\DeleteShowSong;
|
use App\Jobs\DeleteShowSong;
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class DeleteShowSongCommand extends CommandBase
|
class DeleteShowSongCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Commands;
|
namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
|
|
||||||
class DeleteTrackCommand extends CommandBase
|
class DeleteTrackCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,10 +23,10 @@ namespace App\Commands;
|
||||||
use App\Models\Album;
|
use App\Models\Album;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class EditAlbumCommand extends CommandBase
|
class EditAlbumCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\PinnedPlaylist;
|
use App\Models\PinnedPlaylist;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class EditPlaylistCommand extends CommandBase
|
class EditPlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackType;
|
use App\Models\TrackType;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
|
|
||||||
class EditTrackCommand extends CommandBase
|
class EditTrackCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use AudioCache;
|
use AudioCache;
|
||||||
use FFmpegMovie;
|
use FFmpegMovie;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use SplFileInfo;
|
use SplFileInfo;
|
||||||
|
|
|
@ -34,7 +34,7 @@ use App\Models\ResourceUser;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class MergeAccountsCommand extends CommandBase
|
class MergeAccountsCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,8 +28,8 @@ use App\Models\TrackType;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use AudioCache;
|
use AudioCache;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use getID3;
|
use getID3;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class RemoveTrackFromPlaylistCommand extends CommandBase
|
class RemoveTrackFromPlaylistCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,10 +22,10 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Jobs\UpdateTagsForRenamedGenre;
|
use App\Jobs\UpdateTagsForRenamedGenre;
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class RenameGenreCommand extends CommandBase
|
class RenameGenreCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,10 +22,10 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Jobs\UpdateTagsForRenamedShowSong;
|
use App\Jobs\UpdateTagsForRenamedShowSong;
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class RenameShowSongCommand extends CommandBase
|
class RenameShowSongCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,9 +22,9 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class SaveAccountSettingsCommand extends CommandBase
|
class SaveAccountSettingsCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Favourite;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\ResourceUser;
|
use App\Models\ResourceUser;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
|
|
||||||
class ToggleFavouriteCommand extends CommandBase
|
class ToggleFavouriteCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Follower;
|
use App\Models\Follower;
|
||||||
use App\Models\ResourceUser;
|
use App\Models\ResourceUser;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
|
|
||||||
class ToggleFollowingCommand extends CommandBase
|
class ToggleFollowingCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,13 +22,13 @@ namespace App\Commands;
|
||||||
|
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class UploadTrackCommand extends CommandBase
|
class UploadTrackCommand extends CommandBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace App\Console\Commands;
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackType;
|
use App\Models\TrackType;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class ClearTrackCache extends Command
|
class ClearTrackCache extends Command
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use getID3;
|
use getID3;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
|
@ -8,11 +8,11 @@ use App\Models\Genre;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use getID3;
|
use getID3;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
|
@ -33,7 +33,7 @@ use App\Models\ResourceUser;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class RebuildFilesizes extends Command
|
class RebuildFilesizes extends Command
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace App\Console\Commands;
|
||||||
use App\Jobs\EncodeTrackFile;
|
use App\Jobs\EncodeTrackFile;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class RefreshCache extends Command
|
class RefreshCache extends Command
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class VersionFiles extends Command
|
class VersionFiles extends Command
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class AccountController extends Controller
|
class AccountController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class AdminController extends Controller
|
class AdminController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,13 +20,13 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\AlbumDownloader;
|
use App\AlbumDownloader;
|
||||||
use App\Models\Album;
|
use App\Models\Album;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class AlbumsController extends Controller
|
class AlbumsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Http\Controllers\Api\Mobile;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class TracksController extends Controller
|
class TracksController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ use App\Commands\UploadTrackCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class TracksController extends ApiControllerBase
|
class TracksController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,10 +24,10 @@ use App\Commands\SaveAccountSettingsCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class AccountController extends ApiControllerBase
|
class AccountController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,11 +29,11 @@ use App\Models\Image;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class AlbumsController extends ApiControllerBase
|
class AlbumsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,8 +24,8 @@ use App\Commands\CreateAnnouncementCommand;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Announcement;
|
use App\Models\Announcement;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class AnnouncementsController extends Controller
|
class AnnouncementsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers\Api\Web;
|
namespace App\Http\Controllers\Api\Web;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Commands\CreateUserCommand;
|
use App\Commands\CreateUserCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Album;
|
use App\Models\Album;
|
||||||
|
@ -31,10 +31,10 @@ use App\Models\Image;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use ColorThief\ColorThief;
|
use ColorThief\ColorThief;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Helpers;
|
use Helpers;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class ArtistsController extends ApiControllerBase
|
class ArtistsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,12 +20,12 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers\Api\Web;
|
namespace App\Http\Controllers\Api\Web;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Commands\CreateCommentCommand;
|
use App\Commands\CreateCommentCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Comment;
|
use App\Models\Comment;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class CommentsController extends ApiControllerBase
|
class CommentsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Http\Controllers\Api\Web;
|
||||||
|
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class DashboardController extends ApiControllerBase
|
class DashboardController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,9 +26,9 @@ use App\Models\Album;
|
||||||
use App\Models\Favourite;
|
use App\Models\Favourite;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class FavouritesController extends ApiControllerBase
|
class FavouritesController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ use App\Commands\RenameGenreCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class GenresController extends ApiControllerBase
|
class GenresController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@ namespace App\Http\Controllers\Api\Web;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class ImagesController extends ApiControllerBase
|
class ImagesController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ use App\Models\Notification;
|
||||||
use App\Models\Subscription;
|
use App\Models\Subscription;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Minishlink\WebPush\WebPush;
|
use Minishlink\WebPush\WebPush;
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,10 @@ use App\Models\Playlist;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class PlaylistsController extends ApiControllerBase
|
class PlaylistsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Library\Search;
|
use App\Library\Search;
|
||||||
use Elasticsearch;
|
use Elasticsearch;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class SearchController extends ApiControllerBase
|
class SearchController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ use App\Commands\RenameShowSongCommand;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class ShowSongsController extends ApiControllerBase
|
class ShowSongsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,13 +23,13 @@ namespace App\Http\Controllers\Api\Web;
|
||||||
use App\Http\Controllers\ApiControllerBase;
|
use App\Http\Controllers\ApiControllerBase;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class StatsController extends ApiControllerBase
|
class StatsController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ use App\Models\Genre;
|
||||||
use App\Models\License;
|
use App\Models\License;
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use App\Models\TrackType;
|
use App\Models\TrackType;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class TaxonomiesController extends ApiControllerBase
|
class TaxonomiesController extends ApiControllerBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,11 +32,11 @@ use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use App\Models\TrackType;
|
use App\Models\TrackType;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
class TracksController extends ApiControllerBase
|
class TracksController extends ApiControllerBase
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Commands\CommandBase;
|
use App\Commands\CommandBase;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
abstract class ApiControllerBase extends Controller
|
abstract class ApiControllerBase extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class ArtistsController extends Controller
|
class ArtistsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,15 +22,15 @@ namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\Activity;
|
use App\Models\Activity;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
|
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
|
||||||
use League\OAuth2\Client\Token\AccessToken;
|
use League\OAuth2\Client\Token\AccessToken;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Poniverse\Lib\Client;
|
use Poniverse\Lib\Client;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
class AuthController extends Controller
|
class AuthController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class ContentController extends Controller
|
class ContentController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class HomeController extends Controller
|
class HomeController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Models\Image;
|
use App\Models\Image;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
|
|
||||||
class ImagesController extends Controller
|
class ImagesController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,12 +20,12 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Models\Email;
|
use App\Models\Email;
|
||||||
use App\Models\EmailSubscription;
|
use App\Models\EmailSubscription;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class NotificationsController extends Controller
|
class NotificationsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,14 +20,14 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\PlaylistDownloader;
|
use App\PlaylistDownloader;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class PlaylistsController extends Controller
|
class PlaylistsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class StatsController extends Controller
|
class StatsController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,16 +20,16 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use Response;
|
use Illuminate\Support\Facades\Response;
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class TracksController extends Controller
|
class TracksController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|
||||||
class UploaderController extends Controller
|
class UploaderController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Http\Middleware;
|
namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Contracts\Auth\Guard;
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
|
|
||||||
class Authorize
|
class Authorize
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Illuminate\Contracts\Auth\Guard;
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class DisabledAccountCheck
|
class DisabledAccountCheck
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Jobs;
|
||||||
|
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use SerializesModels;
|
use SerializesModels;
|
||||||
|
|
|
@ -22,8 +22,8 @@ namespace App\Jobs;
|
||||||
|
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use SerializesModels;
|
use SerializesModels;
|
||||||
|
|
|
@ -25,13 +25,13 @@ use App\Exceptions\InvalidEncodeOptionsException;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Symfony\Component\Process\Exception\ProcessFailedException;
|
use Symfony\Component\Process\Exception\ProcessFailedException;
|
||||||
use Symfony\Component\Process\Process;
|
use Symfony\Component\Process\Process;
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
namespace App\Jobs;
|
namespace App\Jobs;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
|
|
||||||
abstract class Job
|
abstract class Job
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Jobs;
|
||||||
|
|
||||||
use App\Contracts\Searchable;
|
use App\Contracts\Searchable;
|
||||||
use App\Jobs\Job;
|
use App\Jobs\Job;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
|
|
|
@ -22,12 +22,12 @@ namespace App\Jobs;
|
||||||
|
|
||||||
use App\Models\Genre;
|
use App\Models\Genre;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use SerializesModels;
|
use SerializesModels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,11 +22,11 @@ namespace App\Jobs;
|
||||||
|
|
||||||
use App\Models\ShowSong;
|
use App\Models\ShowSong;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use SerializesModels;
|
use SerializesModels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ use App\Models\Comment;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Minishlink\WebPush\WebPush;
|
use Minishlink\WebPush\WebPush;
|
||||||
|
|
||||||
class NativeDriver extends AbstractDriver
|
class NativeDriver extends AbstractDriver
|
||||||
|
|
|
@ -30,8 +30,8 @@ use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
|
|
||||||
class PonyfmDriver extends AbstractDriver
|
class PonyfmDriver extends AbstractDriver
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ use App\Models\Album;
|
||||||
use App\Models\Playlist;
|
use App\Models\Playlist;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Elasticsearch\Client;
|
use Elasticsearch\Client;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
use Illuminate\Database\Eloquent\Collection;
|
||||||
|
|
|
@ -27,11 +27,11 @@ use App\Exceptions\TrackFileNotFoundException;
|
||||||
use App\Traits\IndexedInElasticsearchTrait;
|
use App\Traits\IndexedInElasticsearchTrait;
|
||||||
use App\Traits\SlugTrait;
|
use App\Traits\SlugTrait;
|
||||||
use App\Traits\TrackCollection;
|
use App\Traits\TrackCollection;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Helpers;
|
use Helpers;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use App\Contracts\Commentable;
|
use App\Contracts\Commentable;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use App\Traits\SlugTrait;
|
use App\Traits\SlugTrait;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\Relation;
|
use Illuminate\Database\Eloquent\Relations\Relation;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use External;
|
use External;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
|
@ -27,9 +27,9 @@ use App\Exceptions\TrackFileNotFoundException;
|
||||||
use App\Traits\IndexedInElasticsearchTrait;
|
use App\Traits\IndexedInElasticsearchTrait;
|
||||||
use App\Traits\SlugTrait;
|
use App\Traits\SlugTrait;
|
||||||
use App\Traits\TrackCollection;
|
use App\Traits\TrackCollection;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Helpers;
|
use Helpers;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* App\Models\ResourceLogItem.
|
* App\Models\ResourceLogItem.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,13 +27,13 @@ use App\Exceptions\TrackFileNotFoundException;
|
||||||
use App\Models\ResourceLogItem;
|
use App\Models\ResourceLogItem;
|
||||||
use App\Traits\IndexedInElasticsearchTrait;
|
use App\Traits\IndexedInElasticsearchTrait;
|
||||||
use App\Traits\SlugTrait;
|
use App\Traits\SlugTrait;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Exception;
|
use Exception;
|
||||||
use External;
|
use External;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use getid3_writetags;
|
use getid3_writetags;
|
||||||
use Helpers;
|
use Helpers;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
@ -42,7 +42,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Venturecraft\Revisionable\RevisionableTrait;
|
use Venturecraft\Revisionable\RevisionableTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use App;
|
use Illuminate\Support\Facades\App;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Helpers;
|
use Helpers;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace App\Models;
|
||||||
use App\Contracts\Commentable;
|
use App\Contracts\Commentable;
|
||||||
use App\Contracts\Searchable;
|
use App\Contracts\Searchable;
|
||||||
use App\Traits\IndexedInElasticsearchTrait;
|
use App\Traits\IndexedInElasticsearchTrait;
|
||||||
use Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Gravatar;
|
use Gravatar;
|
||||||
use Illuminate\Auth\Authenticatable;
|
use Illuminate\Auth\Authenticatable;
|
||||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
||||||
|
@ -38,7 +38,7 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||||
use Illuminate\Foundation\Auth\Access\Authorizable;
|
use Illuminate\Foundation\Auth\Access\Authorizable;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use League\OAuth2\Client\Token\AccessToken;
|
use League\OAuth2\Client\Token\AccessToken;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Venturecraft\Revisionable\RevisionableTrait;
|
use Venturecraft\Revisionable\RevisionableTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,7 +25,7 @@ use Illuminate\Foundation\Application;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use PfmValidator;
|
use PfmValidator;
|
||||||
use Poniverse;
|
use Poniverse;
|
||||||
use Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,7 @@ use App\Policies\GenrePolicy;
|
||||||
use App\Policies\ShowSongPolicy;
|
use App\Policies\ShowSongPolicy;
|
||||||
use App\Policies\TrackPolicy;
|
use App\Policies\TrackPolicy;
|
||||||
use App\Policies\UserPolicy;
|
use App\Policies\UserPolicy;
|
||||||
use Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
||||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Traits;
|
||||||
|
|
||||||
use App\Contracts\Searchable;
|
use App\Contracts\Searchable;
|
||||||
use App\Jobs\UpdateSearchIndexForEntity;
|
use App\Jobs\UpdateSearchIndexForEntity;
|
||||||
use Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Elasticsearch;
|
use Elasticsearch;
|
||||||
use Elasticsearch\Common\Exceptions\Missing404Exception;
|
use Elasticsearch\Common\Exceptions\Missing404Exception;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace App\Traits;
|
||||||
use App\Jobs\EncodeTrackFile;
|
use App\Jobs\EncodeTrackFile;
|
||||||
use App\Models\Track;
|
use App\Models\Track;
|
||||||
use App\Models\TrackFile;
|
use App\Models\TrackFile;
|
||||||
use File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
use Illuminate\Database\Eloquent\Collection;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\Relation;
|
use Illuminate\Database\Eloquent\Relations\Relation;
|
||||||
|
|
Loading…
Reference in a new issue