Repository Pattern implementation for Laravel
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
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"
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.
Report bug
Contact me on Twitter @ephraimseddor
License
The MIT License (MIT). Please see License File for more information.