mawuekom / laravel-repository
Repository Pattern implementation for Laravel
v1.6.1
2022-04-22 15:43 UTC
Requires
- php: ^7.3|^7.4|^8.0
- illuminate/database: ^8.0|^9.0
- illuminate/support: ^8.0|^9.0
- mawuekom/laravel-searchable: ^1.1
- spatie/laravel-json-api-paginate: ^1.10
- spatie/laravel-query-builder: ^5.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
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.