You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this package with a Laravel app that uses Doctrine as the ORM, instead of Eloquent. However, I'm having trouble extending the package's functionality because it seems to be tightly coupled to Eloquent through the TenantFinder abstract class, which must return a Tenant class (which itself inherits from Eloquent's Model class).
Ideally, I should return whichever class I wanted as long as it complies with a given contract/interface.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use this package with a Laravel app that uses Doctrine as the ORM, instead of Eloquent. However, I'm having trouble extending the package's functionality because it seems to be tightly coupled to Eloquent through the
TenantFinder
abstract class, which must return aTenant
class (which itself inherits from Eloquent'sModel
class).Ideally, I should return whichever class I wanted as long as it complies with a given contract/interface.
Is there a way to overcome this problem?
Beta Was this translation helpful? Give feedback.
All reactions