belongsTo(User::class); } public function cart(): HasOne { return $this->hasOne(Cart::class); } }