Download the PHP package rkooistra/super-eloquent-repository without Composer
On this page you can find all versions of the php package rkooistra/super-eloquent-repository. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rkooistra/super-eloquent-repository
More information about rkooistra/super-eloquent-repository
Files in rkooistra/super-eloquent-repository
Package super-eloquent-repository
Short Description A concrete repository for Eloquent models to allow quick implementation of common functionalities, such as CRUD and search methods. Save yourself the boring stuff.
License MIT
Informations about the package super-eloquent-repository
Super Eloquent Repository
Introduction
Welcome to the Super Eloquent Repository library package! This library has the simple use of eliminating having to write the same method over and over again for all your Repositories, allowing you to do the fun programming.
The package is basically a concrete superclass which you can extend all your default Eloquent repositories with. This superclass contains all basic functionalities which you would normally have to write again and again for normal CRUD methods.
How to install and use the package
- Implement this package into your project by running
composer require rkooistra/super-eloquent-repository
. - Create a class which extends the
RKooistra\SuperEloquentRepository\Abstracts\ConcreteResourceRepository
package. -
You must implement the
getModel()
stub per the inheritance rules; configure this to return the class of your respective model, ie: - You should now be able to use all of the implemented methods!