lliure/simple-crud-router

Pre built trait methods for your controller to create a simple crud route

v0.1 2024-07-17 15:40 UTC

This package is auto-updated.

Last update: 2024-12-17 16:40:30 UTC


README

This will set up a simple crud operation + routes inside your controller

How do I get set up?

composer require lliure/simple-crud-router

or add the following to your composer.json

{
  "require": {
    "lliure/simple-crud-router": "*"
  }
}

Usage example

use Lliure\SimpleCrudRouter\RouteCreatorTrait;

class MyController extends Controller
{
    use RouteCreatorTrait;

    protected static $model = MyModel::class;
    protected static $routeGroup = '/app/mymodel';
}