thefletcher/laramake

Extension of built-in Laravel 'make' Commands

v1.0 2017-05-03 17:27 UTC

This package is auto-updated.

Last update: 2024-10-29 03:48:23 UTC


README

LaraMake

About LaraMake

LaraMake is a package that overrides the built-in artisan make commands to add command options that we believe should have been included out-of-the-box, but weren't.

Laravel doesn't want to bloat their commands with too many flags, so we'll do it for them!

Installation

Require the package with Composer:

composer require thefletcher/laramake

Add the Service Provider to config/app.php:

'providers' => [
    // Laravel Framework Service Providers...
    // ...
    
    // Package Service Providers
    TheFletcher\LaraMake\LaraMakeServiceProvider::class,
    // ...
    
    // Application Service Providers
    // ...
],

Verify that Artisan is using the new commands:

php artisan make:model --help

You should see new options available, including --table

Documentation

Below are the commands that have been overridden and what options were added.

make:model

This command creates a Model class.

New options include:

make:provider

This command creates a ServiceProvider class.

New options include:

Contributing

If there are any options you wish Laravel had and would like added here, please create an issue through Github.

If you wish to work on adding new options, I welcome Pull Requests, but only after discussion in an issue first.

Licensing

Much like the Laravel Framework, this package is open-sourced software licensed under the MIT license.