Global Facades

This commit is contained in:
Laravel Shift 2021-02-14 19:45:51 +00:00
parent b8fa6cb1f7
commit 2a62eaa50a
94 changed files with 202 additions and 202 deletions

View file

@ -22,9 +22,9 @@ namespace App\Commands;
use App\Models\Playlist;
use App\Models\Track;
use Auth;
use DB;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
class AddTrackToPlaylistCommand extends CommandBase
{

View file

@ -23,9 +23,9 @@ namespace App\Commands;
use App\Models\Album;
use App\Models\Image;
use App\Models\User;
use Auth;
use Gate;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Validator;
class CreateAlbumCommand extends CommandBase
{

View file

@ -21,8 +21,8 @@
namespace App\Commands;
use App\Models\Announcement;
use Gate;
use Validator;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Validator;
class CreateAnnouncementCommand extends CommandBase
{

View file

@ -25,9 +25,9 @@ use App\Models\Comment;
use App\Models\Playlist;
use App\Models\Track;
use App\Models\User;
use Auth;
use Notification;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\Validator;
class CreateCommentCommand extends CommandBase
{

View file

@ -21,9 +21,9 @@
namespace App\Commands;
use App\Models\Genre;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Str;
use Validator;
use Illuminate\Support\Facades\Validator;
class CreateGenreCommand extends CommandBase
{

View file

@ -21,9 +21,9 @@
namespace App\Commands;
use App\Models\Playlist;
use Auth;
use Notification;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\Validator;
class CreatePlaylistCommand extends CommandBase
{

View file

@ -21,9 +21,9 @@
namespace App\Commands;
use App\Models\ShowSong;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Str;
use Validator;
use Illuminate\Support\Facades\Validator;
class CreateShowSongCommand extends CommandBase
{

View file

@ -21,8 +21,8 @@
namespace App\Commands;
use App\Models\User;
use Gate;
use Validator;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Validator;
class CreateUserCommand extends CommandBase
{

View file

@ -21,8 +21,8 @@
namespace App\Commands;
use App\Models\Album;
use Auth;
use Gate;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Gate;
class DeleteAlbumCommand extends CommandBase
{

View file

@ -22,9 +22,9 @@ namespace App\Commands;
use App\Jobs\DeleteGenre;
use App\Models\Genre;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Validator;
use Illuminate\Support\Facades\Validator;
class DeleteGenreCommand extends CommandBase
{

View file

@ -21,7 +21,7 @@
namespace App\Commands;
use App\Models\Playlist;
use Auth;
use Illuminate\Support\Facades\Auth;
class DeletePlaylistCommand extends CommandBase
{

View file

@ -22,9 +22,9 @@ namespace App\Commands;
use App\Jobs\DeleteShowSong;
use App\Models\ShowSong;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Validator;
use Illuminate\Support\Facades\Validator;
class DeleteShowSongCommand extends CommandBase
{

View file

@ -21,7 +21,7 @@
namespace App\Commands;
use App\Models\Track;
use Gate;
use Illuminate\Support\Facades\Gate;
class DeleteTrackCommand extends CommandBase
{

View file

@ -23,10 +23,10 @@ namespace App\Commands;
use App\Models\Album;
use App\Models\Image;
use App\Models\User;
use Auth;
use DB;
use Gate;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Validator;
class EditAlbumCommand extends CommandBase
{

View file

@ -22,8 +22,8 @@ namespace App\Commands;
use App\Models\PinnedPlaylist;
use App\Models\Playlist;
use Auth;
use Validator;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
class EditPlaylistCommand extends CommandBase
{

View file

@ -26,9 +26,9 @@ use App\Models\Playlist;
use App\Models\Track;
use App\Models\TrackType;
use App\Models\User;
use DB;
use Gate;
use Notification;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Notification;
class EditTrackCommand extends CommandBase
{

View file

@ -26,7 +26,7 @@ use App\Models\Track;
use App\Models\TrackFile;
use AudioCache;
use FFmpegMovie;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str;
use SplFileInfo;

View file

@ -34,7 +34,7 @@ use App\Models\ResourceUser;
use App\Models\Track;
use App\Models\User;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
class MergeAccountsCommand extends CommandBase
{

View file

@ -28,8 +28,8 @@ use App\Models\TrackType;
use App\Models\User;
use AudioCache;
use Carbon\Carbon;
use Config;
use File;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\File;
use getID3;
use Illuminate\Support\Str;
use Symfony\Component\HttpFoundation\File\UploadedFile;

View file

@ -22,8 +22,8 @@ namespace App\Commands;
use App\Models\Playlist;
use App\Models\Track;
use Auth;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
class RemoveTrackFromPlaylistCommand extends CommandBase
{

View file

@ -22,10 +22,10 @@ namespace App\Commands;
use App\Jobs\UpdateTagsForRenamedGenre;
use App\Models\Genre;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str;
use Validator;
use Illuminate\Support\Facades\Validator;
class RenameGenreCommand extends CommandBase
{

View file

@ -22,10 +22,10 @@ namespace App\Commands;
use App\Jobs\UpdateTagsForRenamedShowSong;
use App\Models\ShowSong;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str;
use Validator;
use Illuminate\Support\Facades\Validator;
class RenameShowSongCommand extends CommandBase
{

View file

@ -22,9 +22,9 @@ namespace App\Commands;
use App\Models\Image;
use App\Models\User;
use DB;
use Gate;
use Validator;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Validator;
class SaveAccountSettingsCommand extends CommandBase
{

View file

@ -26,9 +26,9 @@ use App\Models\Favourite;
use App\Models\Playlist;
use App\Models\ResourceUser;
use App\Models\Track;
use Auth;
use DB;
use Notification;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Notification;
class ToggleFavouriteCommand extends CommandBase
{

View file

@ -22,8 +22,8 @@ namespace App\Commands;
use App\Models\Follower;
use App\Models\ResourceUser;
use Auth;
use Notification;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Notification;
class ToggleFollowingCommand extends CommandBase
{

View file

@ -22,13 +22,13 @@ namespace App\Commands;
use App\Models\Track;
use App\Models\User;
use Auth;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use Config;
use Gate;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Facades\Request;
use Validator;
use Illuminate\Support\Facades\Validator;
class UploadTrackCommand extends CommandBase
{

View file

@ -23,7 +23,7 @@ namespace App\Console\Commands;
use App\Models\ShowSong;
use App\Models\Track;
use App\Models\TrackType;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Console\Command;
use Illuminate\Support\Str;

View file

@ -22,7 +22,7 @@ namespace App\Console\Commands;
use App\Models\TrackFile;
use Carbon\Carbon;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Console\Command;
class ClearTrackCache extends Command

View file

@ -21,9 +21,9 @@
namespace App\Console\Commands;
use App\Models\Image;
use Config;
use DB;
use File;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use getID3;
use Illuminate\Console\Command;
use Symfony\Component\HttpFoundation\File\UploadedFile;

View file

@ -8,11 +8,11 @@ use App\Models\Genre;
use App\Models\Image;
use App\Models\Track;
use App\Models\User;
use Auth;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use Config;
use DB;
use File;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use getID3;
use Illuminate\Console\Command;
use Illuminate\Support\Str;

View file

@ -33,7 +33,7 @@ use App\Models\ResourceUser;
use App\Models\Track;
use App\Models\User;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Console\Command;
use Illuminate\Support\Collection;

View file

@ -22,7 +22,7 @@ namespace App\Console\Commands;
use App\Models\Image;
use App\Models\ResourceLogItem;
use DB;
use Illuminate\Support\Facades\DB;
use Exception;
use Illuminate\Console\Command;
use Symfony\Component\HttpFoundation\File\UploadedFile;

View file

@ -21,7 +21,7 @@
namespace App\Console\Commands;
use App\Models\TrackFile;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Console\Command;
class RebuildFilesizes extends Command

View file

@ -23,7 +23,7 @@ namespace App\Console\Commands;
use App\Jobs\EncodeTrackFile;
use App\Models\Track;
use App\Models\TrackFile;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs;

View file

@ -21,7 +21,7 @@
namespace App\Console\Commands;
use App\Models\ResourceLogItem;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Console\Command;
class RefreshCache extends Command

View file

@ -21,7 +21,7 @@
namespace App\Console\Commands;
use App\Models\TrackFile;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Console\Command;
class VersionFiles extends Command

View file

@ -20,9 +20,9 @@
namespace App\Http\Controllers;
use Config;
use Redirect;
use View;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
class AccountController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers;
use View;
use Illuminate\Support\Facades\View;
class AdminController extends Controller
{

View file

@ -20,13 +20,13 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\AlbumDownloader;
use App\Models\Album;
use App\Models\ResourceLogItem;
use App\Models\Track;
use Redirect;
use View;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
class AlbumsController extends Controller
{

View file

@ -22,7 +22,7 @@ namespace App\Http\Controllers\Api\Mobile;
use App\Http\Controllers\Controller;
use App\Models\Track;
use Response;
use Illuminate\Support\Facades\Response;
class TracksController extends Controller
{

View file

@ -24,7 +24,7 @@ use App\Commands\UploadTrackCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Image;
use App\Models\Track;
use Response;
use Illuminate\Support\Facades\Response;
class TracksController extends ApiControllerBase
{

View file

@ -24,10 +24,10 @@ use App\Commands\SaveAccountSettingsCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Image;
use App\Models\User;
use Auth;
use Gate;
use Request;
use Response;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Response;
class AccountController extends ApiControllerBase
{

View file

@ -29,11 +29,11 @@ use App\Models\Image;
use App\Models\ResourceLogItem;
use App\Models\Track;
use App\Models\User;
use Auth;
use Gate;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Gate;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class AlbumsController extends ApiControllerBase
{

View file

@ -24,8 +24,8 @@ use App\Commands\CreateAnnouncementCommand;
use App\Http\Controllers\Controller;
use App\Models\Announcement;
use Carbon\Carbon;
use Request;
use Response;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Response;
class AnnouncementsController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers\Api\Web;
use App;
use Illuminate\Support\Facades\App;
use App\Commands\CreateUserCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Album;
@ -31,10 +31,10 @@ use App\Models\Image;
use App\Models\Track;
use App\Models\User;
use ColorThief\ColorThief;
use Gate;
use Illuminate\Support\Facades\Gate;
use Helpers;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class ArtistsController extends ApiControllerBase
{

View file

@ -20,12 +20,12 @@
namespace App\Http\Controllers\Api\Web;
use App;
use Illuminate\Support\Facades\App;
use App\Commands\CreateCommentCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Comment;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class CommentsController extends ApiControllerBase
{

View file

@ -22,8 +22,8 @@ namespace App\Http\Controllers\Api\Web;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Track;
use Auth;
use Response;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Response;
class DashboardController extends ApiControllerBase
{

View file

@ -26,9 +26,9 @@ use App\Models\Album;
use App\Models\Favourite;
use App\Models\Playlist;
use App\Models\Track;
use Auth;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class FavouritesController extends ApiControllerBase
{

View file

@ -26,7 +26,7 @@ use App\Commands\RenameGenreCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Genre;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class GenresController extends ApiControllerBase
{

View file

@ -23,8 +23,8 @@ namespace App\Http\Controllers\Api\Web;
use App\Http\Controllers\ApiControllerBase;
use App\Models\Image;
use App\Models\User;
use Auth;
use Response;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Response;
class ImagesController extends ApiControllerBase
{

View file

@ -25,7 +25,7 @@ use App\Models\Notification;
use App\Models\Subscription;
use App\Models\Track;
use App\Models\User;
use Auth;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Request;
use Minishlink\WebPush\WebPush;

View file

@ -31,10 +31,10 @@ use App\Models\Playlist;
use App\Models\ResourceLogItem;
use App\Models\Track;
use App\Models\User;
use Auth;
use Illuminate\Support\Facades\Auth;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class PlaylistsController extends ApiControllerBase
{

View file

@ -24,7 +24,7 @@ use App\Http\Controllers\ApiControllerBase;
use App\Library\Search;
use Elasticsearch;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class SearchController extends ApiControllerBase
{

View file

@ -26,7 +26,7 @@ use App\Commands\RenameShowSongCommand;
use App\Http\Controllers\ApiControllerBase;
use App\Models\ShowSong;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
class ShowSongsController extends ApiControllerBase
{

View file

@ -23,13 +23,13 @@ namespace App\Http\Controllers\Api\Web;
use App\Http\Controllers\ApiControllerBase;
use App\Models\ResourceLogItem;
use App\Models\Track;
use Auth;
use Cache;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Str;
use Response;
use Illuminate\Support\Facades\Response;
class StatsController extends ApiControllerBase
{

View file

@ -25,7 +25,7 @@ use App\Models\Genre;
use App\Models\License;
use App\Models\ShowSong;
use App\Models\TrackType;
use DB;
use Illuminate\Support\Facades\DB;
class TaxonomiesController extends ApiControllerBase
{

View file

@ -32,11 +32,11 @@ use App\Models\Track;
use App\Models\TrackFile;
use App\Models\TrackType;
use App\Models\User;
use Auth;
use File;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\File;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\Request;
use Response;
use Illuminate\Support\Facades\Response;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class TracksController extends ApiControllerBase

View file

@ -21,7 +21,7 @@
namespace App\Http\Controllers;
use App\Commands\CommandBase;
use Response;
use Illuminate\Support\Facades\Response;
abstract class ApiControllerBase extends Controller
{

View file

@ -20,10 +20,10 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\Models\User;
use Redirect;
use View;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
class ArtistsController extends Controller
{

View file

@ -22,15 +22,15 @@ namespace App\Http\Controllers;
use App\Models\Activity;
use App\Models\User;
use Auth;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken;
use Log;
use Illuminate\Support\Facades\Log;
use Poniverse\Lib\Client;
use Redirect;
use Request;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Request;
class AuthController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers;
use View;
use Illuminate\Support\Facades\View;
class ContentController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers;
use View;
use Illuminate\Support\Facades\View;
class HomeController extends Controller
{

View file

@ -20,11 +20,11 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\Models\Image;
use Config;
use Redirect;
use Response;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Response;
class ImagesController extends Controller
{

View file

@ -20,12 +20,12 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\Models\Email;
use App\Models\EmailSubscription;
use Auth;
use DB;
use View;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\View;
class NotificationsController extends Controller
{

View file

@ -20,14 +20,14 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\Models\Playlist;
use App\Models\ResourceLogItem;
use App\Models\Track;
use App\PlaylistDownloader;
use Auth;
use Redirect;
use View;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
class PlaylistsController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers;
use View;
use Illuminate\Support\Facades\View;
class StatsController extends Controller
{

View file

@ -20,16 +20,16 @@
namespace App\Http\Controllers;
use App;
use Illuminate\Support\Facades\App;
use App\Models\ResourceLogItem;
use App\Models\Track;
use App\Models\TrackFile;
use Auth;
use Config;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Config;
use Illuminate\Http\Request;
use Redirect;
use Response;
use View;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\View;
class TracksController extends Controller
{

View file

@ -20,7 +20,7 @@
namespace App\Http\Controllers;
use View;
use Illuminate\Support\Facades\View;
class UploaderController extends Controller
{

View file

@ -21,7 +21,7 @@
namespace App\Http\Middleware;
use Closure;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Contracts\Auth\Guard;
class Authorize

View file

@ -22,7 +22,7 @@ namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use Log;
use Illuminate\Support\Facades\Log;
class DisabledAccountCheck
{

View file

@ -22,8 +22,8 @@ namespace App\Jobs;
use App\Models\Genre;
use App\Models\Track;
use Auth;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use SerializesModels;

View file

@ -22,8 +22,8 @@ namespace App\Jobs;
use App\Models\ShowSong;
use App\Models\Track;
use Auth;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use SerializesModels;

View file

@ -25,13 +25,13 @@ use App\Exceptions\InvalidEncodeOptionsException;
use App\Models\Track;
use App\Models\TrackFile;
use Carbon\Carbon;
use Config;
use DB;
use File;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Log;
use Illuminate\Support\Facades\Log;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;

View file

@ -20,8 +20,8 @@
namespace App\Jobs;
use App;
use DB;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\DB;
use Illuminate\Bus\Queueable;
abstract class Job

View file

@ -22,7 +22,7 @@ namespace App\Jobs;
use App\Contracts\Searchable;
use App\Jobs\Job;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\InteractsWithQueue;

View file

@ -22,12 +22,12 @@ namespace App\Jobs;
use App\Models\Genre;
use App\Models\Track;
use Auth;
use Cache;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Log;
use Illuminate\Support\Facades\Log;
use SerializesModels;
/**

View file

@ -22,11 +22,11 @@ namespace App\Jobs;
use App\Models\ShowSong;
use App\Models\Track;
use Auth;
use Cache;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Log;
use Illuminate\Support\Facades\Log;
use SerializesModels;
/**

View file

@ -26,7 +26,7 @@ use App\Models\Comment;
use App\Models\Playlist;
use App\Models\Track;
use App\Models\User;
use Config;
use Illuminate\Support\Facades\Config;
use Minishlink\WebPush\WebPush;
class NativeDriver extends AbstractDriver

View file

@ -30,8 +30,8 @@ use App\Models\Playlist;
use App\Models\Track;
use App\Models\User;
use Carbon\Carbon;
use Log;
use Mail;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Mail;
class PonyfmDriver extends AbstractDriver
{

View file

@ -24,7 +24,7 @@ use App\Models\Album;
use App\Models\Playlist;
use App\Models\Track;
use App\Models\User;
use DB;
use Illuminate\Support\Facades\DB;
use Elasticsearch\Client;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;

View file

@ -27,11 +27,11 @@ use App\Exceptions\TrackFileNotFoundException;
use App\Traits\IndexedInElasticsearchTrait;
use App\Traits\SlugTrait;
use App\Traits\TrackCollection;
use Auth;
use Cache;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Exception;
use Gate;
use Illuminate\Support\Facades\Gate;
use Helpers;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

View file

@ -21,7 +21,7 @@
namespace App\Models;
use App\Contracts\Commentable;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Database\Eloquent\SoftDeletes;

View file

@ -21,7 +21,7 @@
namespace App\Models;
use App\Traits\SlugTrait;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;

View file

@ -20,7 +20,7 @@
namespace App\Models;
use Config;
use Illuminate\Support\Facades\Config;
use External;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;

View file

@ -27,9 +27,9 @@ use App\Exceptions\TrackFileNotFoundException;
use App\Traits\IndexedInElasticsearchTrait;
use App\Traits\SlugTrait;
use App\Traits\TrackCollection;
use Auth;
use Cache;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Helpers;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

View file

@ -20,11 +20,11 @@
namespace App\Models;
use Auth;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;
use Request;
use Illuminate\Support\Facades\Request;
/**
* App\Models\ResourceLogItem.

View file

@ -20,7 +20,7 @@
namespace App\Models;
use DB;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;
/**

View file

@ -27,13 +27,13 @@ use App\Exceptions\TrackFileNotFoundException;
use App\Models\ResourceLogItem;
use App\Traits\IndexedInElasticsearchTrait;
use App\Traits\SlugTrait;
use Auth;
use Cache;
use Config;
use DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Exception;
use External;
use Gate;
use Illuminate\Support\Facades\Gate;
use getid3_writetags;
use Helpers;
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\SoftDeletes;
use Illuminate\Support\Str;
use Log;
use Illuminate\Support\Facades\Log;
use Venturecraft\Revisionable\RevisionableTrait;
/**

View file

@ -20,9 +20,9 @@
namespace App\Models;
use App;
use Config;
use File;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\File;
use Helpers;
use Illuminate\Database\Eloquent\Model;

View file

@ -23,9 +23,9 @@ namespace App\Models;
use App\Contracts\Commentable;
use App\Contracts\Searchable;
use App\Traits\IndexedInElasticsearchTrait;
use Auth;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use DB;
use Illuminate\Support\Facades\DB;
use Gravatar;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
@ -38,7 +38,7 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Support\Str;
use League\OAuth2\Client\Token\AccessToken;
use Validator;
use Illuminate\Support\Facades\Validator;
use Venturecraft\Revisionable\RevisionableTrait;
/**

View file

@ -25,7 +25,7 @@ use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use PfmValidator;
use Poniverse;
use Validator;
use Illuminate\Support\Facades\Validator;
class AppServiceProvider extends ServiceProvider
{

View file

@ -30,7 +30,7 @@ use App\Policies\GenrePolicy;
use App\Policies\ShowSongPolicy;
use App\Policies\TrackPolicy;
use App\Policies\UserPolicy;
use Gate;
use Illuminate\Support\Facades\Gate;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

View file

@ -22,7 +22,7 @@ namespace App\Traits;
use App\Contracts\Searchable;
use App\Jobs\UpdateSearchIndexForEntity;
use Config;
use Illuminate\Support\Facades\Config;
use Elasticsearch;
use Elasticsearch\Common\Exceptions\Missing404Exception;
use Illuminate\Foundation\Bus\DispatchesJobs;

View file

@ -24,7 +24,7 @@ namespace App\Traits;
use App\Jobs\EncodeTrackFile;
use App\Models\Track;
use App\Models\TrackFile;
use File;
use Illuminate\Support\Facades\File;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;