This package allow generate service layer for abstraction the classes of the business logic and decoupling calls to models. My advice is use this layer of abstraction as intermediate between controllers and models.
composer require madeweb/service-layerGenerate service base class and custom service class
php artisan make:service ServiceName Generate service base class and custom service class with custom model
php artisan make:service ServiceName --model=App\\Models\\ModelName $app->register(Madeweb\ServiceLayer\ServiceLayerProvider::class); 'providers' => [
/*
* Custom Service Providers...
*/
Madeweb\ServiceLayer\ServiceLayerProvider::class,
];