PHPackages                             thuanpt/larasitory - 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. thuanpt/larasitory

ActiveLibrary

thuanpt/larasitory
==================

A repository pattern simple for Laravel

1.0.4(3y ago)161MITPHPPHP &gt;=7.1.3

Since Jun 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/thuanpt/larasitory)[ Packagist](https://packagist.org/packages/thuanpt/larasitory)[ RSS](/packages/thuanpt-larasitory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

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

[](#installation)

To get started with **Base Repository**, use Composer to add the package to your project's dependencies:

```
    composer require thuanpt/larasitory
```

### Basic Usage

[](#basic-usage)

Next, you are ready to use repository. If you want create repository with Model corresponding (example: PostRepository), run commnand line:

```
php artisan make:repostitory PostRepository -i
```

When run this commnand, Packeage automatic generate two file in forder Repository: PostRepository and PostRepositoryInterface. PostRepository extends BaseRepository so you can use method in BaseRepository

```
