LaravelPackages.net
Acme Inc.
Toggle sidebar
kepex/laravel-crud-generator

php artisan command to generate fully working crud with grid paginated server side only by having database tables

16.960
97
v0.1.8
About kepex/laravel-crud-generator

kepex/laravel-crud-generator is a Laravel package for php artisan command to generate fully working crud with grid paginated server side only by having database tables. It currently has 97 GitHub stars and 16.960 downloads on Packagist (latest version v0.1.8). Install it with composer require kepex/laravel-crud-generator. Discover more Laravel packages by kepex or browse all Laravel packages to compare alternatives.

Last updated

laravel-crud-generator

Latest Stable Version Total Downloads Latest Unstable Version License

php artisan command to generate fully working crud with grid paginated server side only by having database tables

Installing

php composer.phar require kepex/laravel-crud-generator

Add to config/app.php the following line to the 'providers' array:

CrudGenerator\CrudGeneratorServiceProvider::class,

Preview

Usage

Use the desired model name as the input

CRUD for students table

php artisan make:crud student

or the whole database

php artisan make:crud all

whole database with custom layout

php artisan make:crud all --master-layout=layouts.master 

Because sometimes you need boilerplate code only for view and controller, you can use an existing model with custom controller name

php artisan make:crud student --master-layout=master --custom-controller=dashboard	

For more options

php artisan help make:crud

Custom Templates

The best power of this plugin relies on you making your own templates and generating the code the way you like

Run this command:

php artisan vendor:publish

and you will have now in resources/templates/ the files you need to modify

If you want to go back to the default, just delete them

Let me know if you have any questions or if you find this library useful at twitter @kEpEx

Comments