*/ use HasFactory, LogsModelActivity; protected $fillable = [ 'name', 'external_ip', 'enable', ]; public function rooms() { return $this->hasMany(Room::class); } public function songs(){ return $this->belongsToMany(Song::class) ->withPivot('counts') ->withTimestamps(); } }