Krato / Infinety-CRUD by Krato1
forked from fikriRif/crud_mod

Quickly build an admin interface for your Eloquent models, using Laravel 5. Build a CMS in a matter of minutes.
359
1
4
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

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