Skip to content

shalkam/crud-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrudGenerator

Creates CRUD in MVC pattern for Laravel 5

#Installation Using composer:

composer require "shalkam/crud-generator":"dev-master"

Add Service providers to config/app.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

'aliases' => [
    //...
    'FormBuilder' => 'Kris\LaravelFormBuilder\Facades\FormBuilder',
]

Then run this command

php artisan vendor:publish

#Basic Usage Simply Use this artisan command

php artisan make:crud ModelName

You can replace "ModelName" with a singular model name in CamelCase

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.

About

Creates CRUD in MVC pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published