Skip to content

mawuva/laravel-repository

Repository files navigation

Repository Pattern implementation for Laravel

Latest Version on Packagist Total Downloads

This is a Simple Repository Pattern implementation for Laravel Projects and an easily way to build Eloquent queries from API requests.

Installation

You can install the package via composer:

composer require mawuekom/laravel-repository

configuration

Laravel

After register the service provider to the providers array in config/app.php

'providers' =>
    ...
    Mawuekom\Repository\RepositoryServiceProvider::class
    ...
];

Publish package config

php artisan vendor:publish --provider="Mawuekom\Repository\RepositoryServiceProvider"

Lumen

Go to bootstrap/app.php, and add this in the specified key

$app->register(Mawuekom\Repository\RepositoryServiceProvider::class);

Usage

// Coming soon

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Hope this package will help you build awesome things

Report bug

Contact me on Twitter @ephraimseddor

License

The MIT License (MIT). Please see License File for more information.