*/ protected $fillable = [ 'title', 'location', 'location_url', 'address', 'start_at', 'end_at', 'publish_at', 'status', 'registration_type', 'registration_data', 'hero', 'content', 'price', 'ages', 'open_at', ]; /** * Get all the associated users. * * @return BelongsToMany */ public function users(): BelongsToMany { return $this->belongsToMany(User::class, 'event_user', 'event_id', 'user_id'); } }