0.2.2 2018-11-11 08:31 UTC

This package is auto-updated.

Last update: 2020-03-11 18:53:56 UTC


Easy CRUDs

Use with Laravel only


composer require kairossystems/crud

How to use

Create a new controller

php artisan make:controller TestController

Add properties to this new controller


namespace App\Http\Controllers;

use KairosSystems\CRUD\BaseController;
use Illuminate\Http\Request;
use App\ModelClass;

class TestController extends BaseController
    protected $class = ModelClass::class;
    protected $rulesCreate = [
        'name' => 'required|unique:users'
    protected $rulesUpdate = [
        'name' => 'required|unique:users'

Now you have the index store, update and delete methods automagically


You need the fillable properties in your model

This is a BETA project any ideas are welcome