*/ protected $fillable = [ 'user_id', 'name', 'is_private', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'is_private' => 'boolean', ]; /** * Belongs To A User. */ public function user() { return $this->belongsTo(User::class); } /** * Has Many Episodes. */ public function episodes(): HasMany { return $this->hasMany(PlaylistEpisode::class); } }