shalkam/crud-generator

There is no license information available for the latest version (dev-master) of this package.

Creates CRUD in MVC pattern

Installs: 44

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2015-04-25 12:30 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:15:15 UTC


README

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.