Shift cleanup

This commit is contained in:
Laravel Shift 2021-02-14 18:01:59 +00:00
parent 795f314d1a
commit 00e7dcfa3d
6 changed files with 4 additions and 7 deletions

View file

@ -2,13 +2,13 @@
namespace App\Http\Controllers\Api\Web;
use Illuminate\Support\Arr;
use App\Http\Controllers\Controller;
use App\Models\AlexaSession;
use App\Models\Track;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Session\Store;
use Illuminate\Support\Arr;
use Psr\Log\LoggerInterface;
class AlexaController extends Controller

View file

@ -20,7 +20,6 @@
namespace App\Http\Controllers\Api\Web;
use Illuminate\Support\Str;
use App\Http\Controllers\ApiControllerBase;
use App\Models\ResourceLogItem;
use App\Models\Track;
@ -29,6 +28,7 @@ use Cache;
use Carbon\Carbon;
use DB;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Str;
use Response;
class StatsController extends ApiControllerBase

View file

@ -93,7 +93,6 @@ class Album extends Model implements Searchable, Commentable, Favouritable
protected $elasticsearchType = 'album';
protected $fillable = ['user_id', 'title', 'slug'];
public static function summary()

View file

@ -72,8 +72,6 @@ class Comment extends Model
protected $table = 'comments';
public function user()
{
return $this->belongsTo(User::class);

View file

@ -153,7 +153,7 @@ class Track extends Model implements Searchable, Commentable, Favouritable
protected $elasticsearchType = 'track';
protected $dates = [
'published_at', 'released_at'
'published_at', 'released_at',
];
protected $hidden = ['original_tags', 'metadata'];
protected $casts = [