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
Separate all Laravel elements with adapter Interfaces: eg: LoggerInterface -> Log Laravel facade. Bind interfaces and concretes in AppServiceProvider.
Separate ORM from business logic -> Repository pattern (inject Eloquent model in concrete). In repositories map all models to domain entities, ore just use Laravel models as plain PHP object: $model->property, $model->relation (Collection).
Introduce own Collection (maybe implementing specific contract). Or use Laravel collection as library-like code.
Integrations related code move to separate modules and call through adapter interfaces.
Bind Laravel Events to some strings an resolve events in business logic like this:
The text was updated successfully, but these errors were encountered: