'boolean', 'max_persons' => 'integer', ]; } public function event(): BelongsTo { return $this->belongsTo(Event::class); } public function crowdType(): BelongsTo { return $this->belongsTo(CrowdType::class); } public function recipientCompany(): BelongsTo { return $this->belongsTo(Company::class, 'recipient_company_id'); } public function persons(): BelongsToMany { return $this->belongsToMany(Person::class, 'crowd_list_persons') ->withPivot('added_at', 'added_by_user_id'); } }