*/ protected $fillable = [ 'tenant_id', 'user_id', 'status', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'status' => 'string', ]; /** * Get the tenant that owns the membership. */ public function tenant(): BelongsTo { return $this->belongsTo(Tenant::class); } /** * Get the user that owns the membership. */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }