laravel-repository maintained by programic
Description
Using repositories in Laravel
Author
Last update
2026/04/10 14:51
(dev-master)
License
Downloads
16 363
Programic - Repositories
This package allows you to use Repositories and keeps the controllers clean
Installation
This package requires PHP 8.2+ and Laravel 10, 11, 12, or 13.
composer require programic/laravel-repository
Basic Usage
# Create Repository
php artisan make:repository UserRepository
use App\Repositories\UserRepository;
use Illuminate\Http\Request;
class UserController {
public function index(Request $request, UserRepository $userRepository)
{
$userCollection = $userRepository->search($request)->get();
}
}
Laravel Boost
This package includes Laravel Boost guidelines and skills. When you run php artisan boost:install, the repository guidelines and skills are automatically discovered and installed.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email info@programic.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.