'int', ]; /** * A playlist can have many songs. * * @return BelongsToMany */ public function songs() { return $this->belongsToMany(Song::class); } /** * A playlist belongs to a user. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } }