Skip to content

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

License

Notifications You must be signed in to change notification settings

heymowski/Infinety-CRUD

 
 

Repository files navigation

Infinety CRUD

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 a better documentation

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hello@krato.ro instead of using the issue tracker.

Credits

License

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%