Make and generate Laravel "Controller, Request, Model, Factory, Seed, Migration, Translation, Policy & Permissions" compatible.
Via Composer
$ composer require mont4/laravelmaker
$ php artisan vendor:publish --provider="Mont4\LaravelMaker\LaravelMakerServiceProvider"
$ 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;
});
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
This plugin is open-sourced package licensed under the MIT license.