Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

php artisan make:model - Now with configurable namespace!

License

Notifications You must be signed in to change notification settings

netpok/namespaced-laravel-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namespaced Laravel Models

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.

Abandoned

This package is abandoned since this feature is natively supported in Laravel 8 and later

Installation

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,
];

Configuration

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 support

Laravel 7 is under heavy development, but the current state (2019-10-24) is supported by the next branch.

About

php artisan make:model - Now with configurable namespace!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages