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

This package is auto-updated.

Last update: 2023-01-29 02:33:12 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

License

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