Package Data | |
---|---|
Maintainer Username: | Krato1 |
Maintainer Contact: | hello@infinety.com (Infinety) |
Package Create Date: | 2015-11-12 |
Package Last Update: | 2018-10-29 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-11-17 03:00:55 |
Package Statistics | |
---|---|
Total Downloads: | 359 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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 documentation
Please see CONTRIBUTING for details.
If you discover any security related issues, please email hello@ericlagarda.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.