Daveawb / Repos by syholloway

A generic repository for Laravel
5,525
1
2
Package Data
Maintainer Username: syholloway
Maintainer Contact: david.aw.barker@gmail.com (David Barker)
Package Create Date: 2015-07-02
Package Last Update: 2019-05-09
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:07:25
Package Statistics
Total Downloads: 5,525
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

Repositories for Laravel 5.3

A repository package to add easy to use repositories to any Laravel project utilising Eloquent as the primary DAL. Tested in Laravel 5.3.

Installation

composer require daveawb/repos

Usage

Create a repository class

namespace App\Repositories;

class Repository extends \Daveawb\Repos\Repository
{
    /**
     * Return the models class name
     *
     * @return string
     */
    public function model()
    {
        return App\User::class;
    }
}

Available API methods

Criteria

Terminators

Credits

A repository pattern for Laravel 5.1 by andersao