thinktomorrow / repo
This package is abandoned and no longer maintained.
No replacement package was suggested.
A Laravel repository package for retrieving, filtering and sorting models
1.0.0
2016-05-12 21:58 UTC
Requires
- php: >=5.5.9
- laravel/framework: ~5.1
Requires (Dev)
- mockery/mockery: ~0.9
- orchestra/testbench: ^3.2
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2023-01-29 02:33:12 UTC
README
A Laravel repository package for retrieving, filtering and sorting models
The repo class offers an opinionated way of querying your eloquent model.
Install
Via Composer
$ composer require thinktomorrow/repo
Usage
<?php namespace App\Domain; use Thinktomorrow\Repo\BaseRepository; use Thinktomorrow\Repo\Filterable; use Thinktomorrow\Repo\Sortable; class ChildRepository extends BaseRepository{ use Filterable, Sortable; public function __construct(ModelStub $model) { $this->setModel($model); } }
Testing
$ vendor/bin/phpunit
Security
If you discover any security related issues, please email ben@thinktomorrow.be instead of using the issue tracker.
Credits
- Ben Cavens ben@thinktomorrow.be
License
The MIT License (MIT). Please see License File for more information.