This package's sole purpose is to allow setting the default namespace for the Laravel make:model command and the other commands accepting models as parameters.
This package is abandoned since this feature is natively supported in Laravel 8 and later
You can install this package via composer:
composer require netpok/namespaced-laravel-models --dev
The service provider will automatically register or you may manually add the
service provider in your config/app.php
file:
'providers' => [
// ...
Netpok\NamespacedLaravelModels\ServiceProvider::class,
];
By default this package sets the namespace to Models under your route namespace (App\Models), but feel free to publish the configuration and set your preferred namespace.
php artisan vendor:publish --provider="Netpok\\NamespacedLaravelModels\\ServiceProvider"
Laravel 7 is under heavy development, but the current state (2019-10-24) is supported by the next branch.