Helper provider to assist in general crud functions of a restful controller
sapioweb/crudhelper is a Laravel package for helper provider to assist in general crud functions of a restful controller.
It currently has 1 GitHub stars and 203 downloads on Packagist (latest version 1.3.1).
Install it with composer require sapioweb/crudhelper.
Discover more Laravel packages by sapioweb
or browse all Laravel packages to compare alternatives.
Last updated
Include into your config/app.php, Sapioweb\CrudHelper\CrudHelperServiceProvider::class,
Use the helper in any controller you plan to use it in, use Sapioweb\CrudHelper\CrudyController as CrudHelper;
use Sapioweb\CrudHelper\CrudyController as CrudHelper;
dd(CrudHelper::index());
Grab all data for a given resource
CrudHelper::index($model, $relations = null)
Stores you data for a resource
CrudHelper::store($model, $createData)
Show a single resource
CrudHelper::show($model, $field = 'id', $id, $relations = null)
Preform a where query on relationships
CrudHelper::relationshipQuery($model, $relationships, $relationField = null, $relationshipQuery = null)
Create or update a resource
CrudHelper::createOrUpdate($model, $field, $id, $inputData)
Destroy a resource
CrudHelper::destroy($model, $field = 'id', $id)
Turn a regular string into a slug string
CrudHelper::slugify($text)
This software is open-sourced software licensed under the MIT license. For questions please email [email protected] or [email protected] or visit Sapioweb.com to learn more and get in contact