smorken/service
A lightweight base service class for Laravel that gives you a clean place to put business logic outside controllers and models. Extend the provided Service, add your methods, and keep controllers thin while sharing reusable, testable operations across your app.
Architecture fit
Service class plus container-resolution conventions that sit on top of Laravel's existing IoC container. It is additive rather than invasive: it does not replace the container, Eloquent, or the HTTP kernel.Service class commits consuming code to single-inheritance coupling with a third-party class. That is a durable structural dependency for what is likely under a few hundred lines of glue logic.Integration feasibility
repositories VCS entry in composer.json (or a private Packagist/Satis mirror). There is no evidence of published semver tags, so the constraint will likely be dev-master or a pinned commit hash.Technical risk
illuminate/* constraints. Laravel majors move fast (10 → 11 → 12); an unpinned or narrow constraint will block upgrades and, given zero dependents, will not be fixed upstream on any predictable timeline.dev-master pulls are non-reproducible builds. Must pin to a commit SHA.App\Services or Service facade alias.Key questions
app()->make() and constructor injection do not?ServiceProvider and/or facade, and what does it alias?composer.json?Stack fit
illuminate/support and/or illuminate/container.App\Actions, treat this as redundant and stop here.Migration path
dev-master. Recommended path is fork-and-vendor: copy the source into an internal package (internal/laravel-service) or an App\Support namespace, retaining the license header, and own it outright.Compatibility
composer.json.composer why-not against the current framework version before committing, and add a CI check that fails on constraint drift.Sequencing
Maintenance
Support
Scaling
make() per service instantiation, which is negligible against typical request budgets.Failure modes
illuminate/* constraint is narrower than the target Laravel version and no upstream fix arrives.composer install for every environment simultaneously.Ramp-up
How can I help you explore Laravel packages today?