Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 51 lines (32 sloc) 1.21 KB
title template chapter
Get Started
documentation.twig::content_inner
1

Installation

Composer

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' => [

    \Torann\LaravelRepository\RepositoryServiceProvider::class,

]

Lumen (optional)

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

$app->register(\Torann\LaravelRepository\RepositoryServiceProvider::class);

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.