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
Requires
- php: ^7.4 || ^v8 || ^v8.1
- lliure/lliure-core: ^v5.3 || ^v6
- lliure/router: ^v0
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';
}