Quickly build an admin interface for your Eloquent models, using Laravel 5. Build a CMS in a matter of minutes.

Installs: 359

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 17

Open Issues: 0

Language:HTML


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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:

  1. Create a controller that extends CrudController.

  2. Make your model use the CrudTrait.

  3. Create a new resource route.

  4. (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

License

The MIT License (MIT). Please see License File for more information.