edit this page Get Started



From the command line run:

$ composer require torann/laravel-repository

NOTE The Service Provider and configuration file is not required for regular use. It is only required when using the caching feature.

Laravel (optional)

Once installed you need to register the service provider with the application. Open up config/app.php and find the providers key.

'providers' => [



Lumen (optional)

For Lumen register the service provider in bootstrap/app.php.


Publish the configurations (optional)

Run this on the command line from the root of your project:

$ php artisan vendor:publish --provider="Torann\LaravelRepository\RepositoryServiceProvider" --tag=config

A configuration file will be publish to config/repositories.php.