'int', 'rules' => 'array', ]; public function songs(): BelongsToMany { return $this->belongsToMany(Song::class); } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function getIsSmartAttribute(): bool { return (bool) $this->rules; } }