*/ protected $fillable = [ 'event_id', 'user_id', ]; /** * Get the event for this attachment. * * @return BelongsTo */ public function event() { return $this->belongsTo(Event::class); } /** * Get the user for this attachment. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } }