allay/generators

Generate files for laravel-allay projects

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0 2016-11-26 20:18 UTC

This package is not auto-updated.

Last update: 2021-04-03 01:41:39 UTC


README

Quickly generate Allay templated Models, Requests, Views and Config files.

Install

Via Composer

$ composer require allay/generators --dev

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: Add this to your config/app.php, under "providers":

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

Usage

Open the console and enter one of the commands to generate:

Models

$ php artisan allay:model

Requests

$ php artisan allay:request

Views

$ php artisan allay:view

Config Files

$ php artisan allay:config

Scaffold an Entire Allay\CRUD interface:

$ php artisan allay:crud {Entity_name}

Individual Allay\CRUD files:

$ php artisan allay:crud-controller {Entity_name}
$ php artisan allay:crud-model {Entity_name}
$ php artisan allay:crud-request {Entity_name}

License

The MIT License (MIT). Please see License File for more information.