PHPackages                             fomvasss/laravel-repository - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. fomvasss/laravel-repository

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

fomvasss/laravel-repository
===========================

The library for build laravel repository

1.2.1(7y ago)11851MITPHPPHP &gt;=7.0.0

Since Jan 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fomvasss/laravel-repository)[ Packagist](https://packagist.org/packages/fomvasss/laravel-repository)[ Docs](https://github.com/fomvasss/laravel-repository)[ RSS](/packages/fomvasss-laravel-repository/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Laravel repository
==================

[](#laravel-repository)

[![Latest Stable Version](https://camo.githubusercontent.com/f2c19908a5dc11806f447d463c098fbdde640c306d2eefa7f59a516cd6f12406/68747470733a2f2f706f7365722e707567782e6f72672f666f6d76617373732f6c61726176656c2d7265706f7369746f72792f762f737461626c65)](https://packagist.org/packages/fomvasss/laravel-repository)[![Total Downloads](https://camo.githubusercontent.com/c241b6dec93663d4b6584b197b10e1fd465740354ee085513e7d3e1f01172f78/68747470733a2f2f706f7365722e707567782e6f72672f666f6d76617373732f6c61726176656c2d7265706f7369746f72792f646f776e6c6f616473)](https://packagist.org/packages/fomvasss/laravel-repository)[![Latest Unstable Version](https://camo.githubusercontent.com/3a379e80502704fae0e08eee9c0b835a38b10cb53c44af86c2dffb943e6eda77/68747470733a2f2f706f7365722e707567782e6f72672f666f6d76617373732f6c61726176656c2d7265706f7369746f72792f762f756e737461626c65)](https://packagist.org/packages/fomvasss/laravel-repository)[![License](https://camo.githubusercontent.com/f2112724f97557fa7971228da29b0fec4ec194661188db73febeacd217c45ce9/68747470733a2f2f706f7365722e707567782e6f72672f666f6d76617373732f6c61726176656c2d7265706f7369746f72792f6c6963656e7365)](https://packagist.org/packages/fomvasss/laravel-repository)

Base class and methods for build repository pattern in Laravel and cache queries

Installation
------------

[](#installation)

Run:

```
	composer require fomvasss/laravel-repository
```

Publish config:

```
php artisan vendor:publish --provider="Fomvasss\Repository\Providers\RepositoryServiceProvider" --tag="repository-config"
```

All base methods repository
---------------------------

[](#all-base-methods-repository)

- Interface all methods see in [RepositoryInterface](src/Contracts/RepositoryInterface.php)
- Realisation interface see in [BaseRepository](src/Eloquent/BaseRepository.php)

Usage
-----

[](#usage)

### Make own repository

[](#make-own-repository)

Extend your repository class the next `BaseRepository` class

```
