marabesi/easy-crud

There is no license information available for the latest version (1.1.0) of this package.

(Laravel 5+) Simple and effective way to generate CRUD from your models or database Edit

Installs: 73

Dependents: 0

Suggesters: 0

Security: 0

Stars: 28

Watchers: 3

Forks: 2

Language:CSS

1.1.0 2017-09-22 14:03 UTC

This package is not auto-updated.

Last update: 2024-04-23 02:27:19 UTC


README

Codacy Badge Build Status Latest Stable Version Total Downloads Latest Unstable Version License composer.lock HitCount

(Laravel 5+) Simple and effective way to generate CRUD from your models or database

Version Compatibility

Laravel EasyCrud
4.x.x Not supported
5.0.x Not supported
5.1.x 1.x.x
5.2.x 1.x.x
5.3.x Not supported
5.4.x Not supported
5.5.x Not supported

What you can do?

  • Generate CRUD from Laravel models
  • Generate CRUD from database table (not ready)

Powered by Gentelella theme

Gentelella Bootstrap Admin Template

Features

  • Friendly admin to manage your data (CRUD)
  • Prevent collisions with defined routes
  • Beautiful admin template

Installing

composer require marabesi/easy-crud

Update the service provider list

'providers' => [
    EasyCrud\Providers\EasyCrud::class,
]

Publish the vendor assets to you current project

artisan vendor:publish

Now, you should have a file called easy-crud.php inside your config folder, open it and edit as you wish.

<?php

return [
    /**
     * All models that should have a CRUD. The key of the element will
     * appear as the menu label in the admin area
     */
    'models' => [
        'Users' => \App\User::class
    ],

    /**
     * URL that should be used to access the gentella admin
     * where you can manage all models that have CRUD
     */
    'url_base' => '/admin',

    /**
     * You might want to have some validation before accessing
     * the gentela admin, to achieve that, just inform the middleware 
     * class name in the array. It will go through each middleware declared 
     * below.
     */
    'middlewares' => [
    ]
];

Add every model that you want to see in the admin in the models array, the key should be the label name. It will appear in the admin area.

More info

https://marabesi.com/php/2017/09/21/easy-crud.html