mawuekom/laravel-repository

Repository Pattern implementation for Laravel

v1.6.1 2022-04-22 15:43 UTC

This package is auto-updated.

Last update: 2024-04-22 20:11:00 UTC


README

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.