PHPackages                             maxcxam/laravel-generator-extended - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. maxcxam/laravel-generator-extended

ActiveLibrary[Database &amp; ORM](/categories/database)

maxcxam/laravel-generator-extended
==================================

Extend Laravel 9 migration creator

1.2.2.7(3y ago)015MITPHPPHP &gt;=8.1

Since Feb 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/maxcxam/laravel-generator-extended)[ Packagist](https://packagist.org/packages/maxcxam/laravel-generator-extended)[ RSS](/packages/maxcxam-laravel-generator-extended/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (10)Used By (0)

Laravel 9 Extended Migration Generator
======================================

[](#laravel-9-extended-migration-generator)

L5 includes a bunch of generators out of the box, so this package only needs to add a few things, like:

- `make:entity`
- `make:entity {ModelName}`

Usage on Laravel 9
------------------

[](#usage-on-laravel-9)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require maxcxam/laravel-generator-extended

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

You'll only want to use these generators for local development, so you don't want to update the production `providers` array in `config/app.php`. Instead, add the provider in `app/Providers/AppServiceProvider.php`, like so:

```
public function register()
{
    if ($this->app->environment() == 'development') {
        $this->app->register('Maxcxam\Generators\GeneratorsServiceProvider');
    }
}
```

### Step 3: Run Artisan!

[](#step-3-run-artisan)

You're all set. Run `php artisan` from the console, and you'll see the new commands in the `make:*` namespace section.

Examples
--------

[](#examples)

- [Migrations With Schema](#migrations-with-schema)

### Migrations With Schema

[](#migrations-with-schema)

```
php artisan make:model Product

```

answer for a some questions like field names, types, nullable, **relations** etc

...this will give you:

```
