Skip to content
php artisan make:all for Laravel with Make and generate Laravel "Controller, Request, Model, Factory, Seed, Migration, Translation, Policy & Permissions" compatible.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
database/migrations
resources/lang
src
.DS_Store
.travis.yml
changelog.md
composer.json
contributing.md
license.md
phpunit.xml
readme.md

readme.md

LaravelMaker

stable Total Downloads Build Status StyleCI

Make and generate Laravel "Controller, Request, Model, Factory, Seed, Migration, Translation, Policy & Permissions" compatible.

Installation

Via Composer

$ composer require mont4/laravelmaker
$ php artisan vendor:publish --provider="Mont4\LaravelMaker\LaravelMakerServiceProvider"

Usage

$ php artisan make:all
$ php artisan permission:sync
$ php artisan make:method

Add to boot() method in App\Providers\AuthServiceProvider

Gate::guessPolicyNamesUsing(function ($modelClass) {
    $path = str_replace("\\Models\\", "\\Policies\\", $modelClass) . 'Policy';

    return $path;
});

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

This plugin is open-sourced package licensed under the MIT license.

You can’t perform that action at this time.