CrudGenerator
Creates CRUD in MVC pattern for Laravel 5, (*1)
Installation
Using composer:
``` php
composer require "shalkam/crud-generator":"dev-master", (*2)
Add Service providers to `config/app.php`
``` php
'providers' => [
// ....
'Shalkam\CrudGenerator\CrudGeneratorServiceProvider',
//For the form-builder package
'Kris\LaravelFormBuilder\FormBuilderServiceProvider',
//For column sortable package
'Kyslik\ColumnSortable\ColumnSortableServiceProvider',
//For Menu package
'Menu\MenuServiceProvider',
]
Add Facades to config/app.php
``` php
'aliases' => [
//...
'FormBuilder' => 'Kris\LaravelFormBuilder\Facades\FormBuilder',
], (*3)
Then run this command
``` sh
php artisan vendor:publish
Basic Usage
Simply Use this artisan command
sh
php artisan make:crud ModelName
You can replace "ModelName" with a singular model name in CamelCase, (*4)
Then all you've got to do is to fill in the fields in this format fieldId:fieldType
Field Type corresponds to field types in table schema used in a migration file., (*5)