]> git.localhorst.tv Git - alttp.git/blob - app/Models/EpisodePlayer.php
1125701e4a9f38e15775cd2edbdbf98c1a00a1bd
[alttp.git] / app / Models / EpisodePlayer.php
1 <?php
2
3 namespace App\Models;
4
5 use Illuminate\Database\Eloquent\Factories\HasFactory;
6 use Illuminate\Database\Eloquent\Model;
7
8 class EpisodePlayer extends Model
9 {
10         use HasFactory;
11
12         public function episode() {
13                 return $this->belongsTo(Episode::class);
14         }
15
16         public function user() {
17                 return $this->belongsTo(User::class);
18         }
19
20         protected $casts = [
21                 'user_id' => 'string',
22         ];
23
24         protected $hidden = [
25                 'created_at',
26                 'ext_id',
27                 'updated_at',
28         ];
29
30 }