dev-master
9999999-dev https://github.com/jspaceboots/LaraCRUDProvides quick application scaffolding as well as HTML & JSON API interfaces for model CRUD.
MIT
The Requires
The Development Requires
laracrud jspaceboots
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Provides quick application scaffolding as well as HTML & JSON API interfaces for model CRUD.
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
Provides quick application scaffolding as well as HTML and JSON API interfaces for model CRUD., (*2)
To give you the ability to scaffold your data model in thirty minutes or less by hand or by script., (*3)
We let you quickly produce everything necessary (models, transformers, repositories, etc.) and wire it together in a single console command, instantly exposing your data for Create Read Update and Delete operations via both an "Admin Panel" web GUI and a RESTful JSON API., (*4)
tl;dr: You write migrations, we give you an admin panel + API, (*5)
ALPHA, (*6)
Super early days, feature incomplete, USE AT YOUR OWN RISK., (*7)
Via Composer, (*8)
``` bash $ composer require jspaceboots/laracrud, (*9)
## Quickstart First you need to publish the config and public assets: ``` php php artisan vendor:publish
Next modify your applications config/crud.php to suit the needs of your project. Once you're done:, (*10)
php artisan laracrud:make:model MySingularModel
This will generate the files necessary for LaraCRUD to hook into your data model, specifically a: - Model - Repository - Transformer - Migration, (*11)
These will be generated in directories matching the namespaces laid out in config/crud.php. For instance, if your repositories namespace is set to "\App\Repositories\" the generated repository will be written to app/repositories. The one exception is the migration, which will be placed in database/migrations. In addition to generating these files the generated model will be added to the routing configuration in config/crud.php., (*12)
From here you only need to fill out the generated migration and then run:, (*13)
php artisan migrate
At this point all non-relational fields of your model should be fully accessible via http://{{domain}}/crud/{{model}} and http://{{domain}}/api/crud/{{model}}, (*14)
The laracrud:make:model command will generate table names by transforming your camel case model name (MyModel) into an underscore seperated representation and pluralizing the last word (my_models)., (*15)
If you're using LaraCRUD to bootstrap a project, or just wish to remove LaraCRUD at some future point, simply run:, (*16)
php artisan laracrud:eject
This will remove the dependancy to LaraCRUDs Abstract classes from the models, repositories, and transformers that have been generated, remove the packages published configuration and assets from your project, and finally de-register the LaraCRUD service provider with your Laravel instance., (*17)
Please see CHANGELOG for more information on what has changed recently., (*18)
bash
$ composer test, (*19)
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*20)
If you discover any security related issues, please email :author_email instead of using the issue tracker., (*21)
The MIT License (MIT). Please see License File for more information., (*22)
Provides quick application scaffolding as well as HTML & JSON API interfaces for model CRUD.
MIT
laracrud jspaceboots