laravel-crud-generator maintained by dottystyle
Laravel CRUD generator
This package was created mainly for Dottystyle developers. The function of this package is to scaffold the very basic purpose of a CRUD. It creates the following:
- Controller
- Model
- Resource
- Request
Installation
-
Install the package
$ composer require dottystyle/laravel-crud-generator -
Publish vendor
$ php artisan vendor:publish --provider="Dottystyle\LaravelCrudGenerator\Providers\LaravelCrudGeneratorServiceProvider" -
Edit config/app.php (Add the following)
service provider: Dottystyle\LaravelCrudGenerator\Providers\LaravelCrudGeneratorServiceProvider::class,
Using this package
-
Building CRUD for api resources
php artisan make:crud ModelName --api -
Building a simple CRUD
php artisan make:crud ModelName -
Building a simple CRUD with service
php artisan make:crud ModelName --with-service -
Building a simple Service with Interface
php artisan make:service ServiceName