infinety-es/crud
Infinety CRUD
Quickly build an admin interface for your Eloquent models, using Laravel 5. Erect a complete CMS at 10 minutes/model, max.
Install
Via Composer
$ composer require infinety-es/crud/
Add this under service providers array on config/app.php
'Jenssegers\Date\DateServiceProvider',
Add this to your config/app.php, under "aliases":
'CRUD' => 'Infinety\CRUD\CrudServiceProvider',
'Date' => Jenssegers\Date\Date::class,
Usage
In short:
-
Create a controller that extends CrudController.
-
Make your model use the CrudTrait.
-
Create a new resource route.
-
(optional) Define your validation rules in a Request files.
Data Types
Images:
On column array add this to tell the crud is an image:
'type' => 'image'
Date
On column array add this to tell the crud is an date:
'type' => 'date',
'language' => 'es', //Language set
'format' => 'd-m-Y' //Custom date format
You can format a Date object like the DateTime object (http://www.php.net/manual/en/function.date.php):
ToDO
Add documentation
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hello@ericlagarda.com instead of using the issue tracker.
Credits
- [Infinety][http://www.infinety.es]
- All Contributors
License
The MIT License (MIT). Please see License File for more information.