add staff remove & staff invite test
This commit is contained in:
@@ -115,7 +115,7 @@ class User extends Authenticatable
|
||||
|
||||
public function invitedEvent(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Event::class, 'event_guest')
|
||||
return $this->belongsToMany(Event::class, 'event_guest', 'user_id', 'event_id')
|
||||
->withPivot('is_staff', 'validated_at')
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user