samyoteroglez/larawesomecrud

CRUD generator for Laravel. Generates models, controller and views based on the database tables. This project is based on kEpEx/laravel-crud-generator from Alfredo Aguirre (alfrednx@gmail.com).

1.2.0 2017-01-28 21:34 UTC

This package is not auto-updated.

Last update: 2024-04-13 23:56:51 UTC


README

Everything is awesome! o(Oo,)o

###A CRUD generator for Laravel. Generates models, controller and views based on the database tables.

laravel

#Requirements

    Laravel 5.1
    Laravel collective
    
    twitter-bootstrap
    datatables

#Install

###Step 1

    composer require samyoteroglez/larawesomecrud

###Step 2

Add your new provider to the providers array of config/app.php:

    CrudGenerator\CrudGeneratorServiceProvider::class,

###Step 3

Boom! Enjoy it.

#Usage

Use a table name, a list of table names as the input or just generate all the database.

###CRUD for all database

php artisan make:crud all
php artisan make:crud --all
php artisan make:crud -a
php artisan make:crud

###CRUD for one table

php artisan make:crud table_1

###CRUD for a list of tables

php artisan make:crud table_1,table_2,table_3 --only
php artisan make:crud table_1,table_2,table_3 -o

###CRUD for all except for the tables in a given list

php artisan make:crud table_1,table_2,table_3 --all-but
php artisan make:crud table_1,table_2,table_3 -b

###Generate Form Requests

php artisan make:crud table_1 --formrequest
php artisan make:crud table_1 -r

###Add links to the dashboard menu

php artisan make:crud table_1 --dashboard-menu
php artisan make:crud table_1 -m

###To check all the options

php artisan help make:crud

###Custom Templates

###Use a custom layout

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

###Customize your own templates

php artisan vendor:publish

#Contact GitHub: SamyOteroGlez Twitter: @SamyOteroGlez

###This project is based on [kEpEx/laravel-crud-generator] (https://github.com/kEpEx/laravel-crud-generator) from Alfredo Aguirre (alfrednx@gmail.com).

#License MIT License SamyOteroGlez & contributors