Model Manager for Laravel Applications
composer require codingphase/model-manager
Add your new provider to the providers array of config/app.php:
'providers' => [
// ...
CodingPhase\ModelManager\ModelManagerServiceProvider::class,
// ...
],Publish config
php artisan vendor:publish --provider="CodingPhase\ModelManager\ModelManagerServiceProvider"