PHPackages                             dugajean/repositories - 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. dugajean/repositories

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

dugajean/repositories
=====================

Laravel Repositories

0.2(6y ago)6686519[3 issues](https://github.com/dugajean/laravel-repositories/issues)[1 PRs](https://github.com/dugajean/laravel-repositories/pulls)MITPHPPHP ^7.2

Since Jun 29Pushed 4y ago2 watchersCompare

[ Source](https://github.com/dugajean/laravel-repositories)[ Packagist](https://packagist.org/packages/dugajean/repositories)[ Docs](http://dukagj.in)[ RSS](/packages/dugajean-repositories/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Laravel Repositories
====================

[](#laravel-repositories)

[![Build Status](https://camo.githubusercontent.com/8d5725b2b984301e2f00109393681a88f62cb512f344dd21aadd691ff1d26da9/68747470733a2f2f7472617669732d63692e6f72672f647567616a65616e2f6c61726176656c2d7265706f7369746f726965732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dugajean/repositories)[![Latest Stable Version](https://camo.githubusercontent.com/6b959a006b29f805e91be7c9146a6f58ffbf2bc72011ebf9f4a7905f486944e8/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f7265706f7369746f726965732f762f737461626c65)](https://packagist.org/packages/dugajean/repositories)[![Total Downloads](https://camo.githubusercontent.com/f6f322d4f505983f96caeca598379141c44378552c910a564298cd1c6eb7a1fa/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f7265706f7369746f726965732f646f776e6c6f616473)](https://packagist.org/packages/dugajean/repositories)[![License](https://camo.githubusercontent.com/4aa5df79b4ccc06ba94634e0769b4b206b3bb4169f3e34ae07969f92d6917549/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f7265706f7369746f726965732f6c6963656e7365)](https://packagist.org/packages/dugajean/repositories)

Laravel Repositories is a package for Laravel 5 which is used to abstract the database layer. This makes applications much easier to maintain.

This package was originally created by Bosnadev, who is no longer maintaining it; therefore, I have decided to take this project over and assure its maintenance.

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

[](#installation)

Run the following command from you terminal:

```
composer require dugajean/repositories
```

Usage
-----

[](#usage)

First, create your repository class with this command:

```
php artisan make:repository Film
```

Where `Film` is the name of an existing model. If the model does not exist, it will be generated for you.

Finally, use the repository in the controller:

```
