Download the PHP package budgetdumpster/crud-service without Composer
On this page you can find all versions of the php package budgetdumpster/crud-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download budgetdumpster/crud-service
More information about budgetdumpster/crud-service
Files in budgetdumpster/crud-service
Package crud-service
Short Description Eloquent model-independent CRUD Service
License MIT
Homepage https://github.com/BD-StrategicTech/CrudService
Informations about the package crud-service
CrudService
Installation
composer require budgetdumpster/crud-service:dev-master
Tests
This package comes with a full test suite, and that test suite can be run by executing the command phpunit
in the package root directory.
Usage
The CrudService
package was designed to work with Eloquent Models (Laravel) and creates an unspecific service that will allow you to
perform CRUD operations on your data and models.
Retrieve Single Model
This is a base use case for retrieving a single model by id, there's a built in way of Eager Loading
the relationships, which is simply to provide a public property on the model that is called relationNames
. The relation names are just strings that match the name of the relationship methods in the model. Relationships can be loaded in a normal manner by referring to that property, the relationNames
property only comes into play if the relationships need to be eager loaded.
Create Single Model
Update Single Model
Delete Single Model
Retrieve Collection of Models
All versions of crud-service with dependencies
illuminate/events Version ^5.5
monolog/monolog Version ^1.23