mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 19:16:44 +01:00
Shift cleanup
This commit is contained in:
parent
795f314d1a
commit
00e7dcfa3d
6 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -72,8 +72,6 @@ class Comment extends Model
|
|||
|
||||
protected $table = 'comments';
|
||||
|
||||
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
|
|
|
@ -95,7 +95,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable
|
|||
protected $elasticsearchType = 'playlist';
|
||||
|
||||
protected $table = 'playlists';
|
||||
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue