Quickly build an admin interface for your Eloquent models, using Laravel 5. Erect a complete CMS at 10 minutes/model, max.
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,
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.
On column array add this to tell the crud is an image:
'type' => 'image'
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):
Add a better documentation
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email hello@krato.ro instead of using the issue tracker.
- [Infinety][http://www.infinety.es]
- All Contributors
The MIT License (MIT). Please see License File for more information.