Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-repository maintained by net-os

Description
Using repositories in Laravel
Author
Last update
2026/10/02 12:16 (dev-master)
License
Links
Downloads
247

Comments
comments powered by Disqus

Net OS - Repositories

Latest Version on Packagist Total Downloads

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 net-os/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 software@net-os.com instead of using the issue tracker.

Credits

License

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