2017 © Pedro Peláez
 

library laravel-repos

Small Laravel 5 repositories package to abstract the database layer of your web application.

image

mrterryh/laravel-repos

Small Laravel 5 repositories package to abstract the database layer of your web application.

  • Tuesday, September 22, 2015
  • by mrterryh
  • Repository
  • 1 Watchers
  • 2 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel Repos

Small Laravel 5 repositories package to abstract the database layer of your web application., (*1)

Installation

Install the package by running, either by running the following command in your project root:, (*2)

$ composer require mrterryh/laravel-repos

Or by adding the following line to the require object in your composer.json file:, (*3)

"mrterryh/laravel-repos": "1.*"

Then run $ composer update in your command line to install the dependency., (*4)

Usage

Anywhere within your application, create a new file. The file name convention for this package is [Model]Repository.php. Let's use the standard Laravel User model for this example., (*5)

Create a new file UserRepository.php in app/Repositories, and create a class within the file that extends Mrterryh\Repositories\Base\EloquentRepository:, (*6)

use Mrterryh\Repositories\Base\EloquentRepository;

class UserRepository extends EloquentRepository
{

}

Then, provide the full, namespaced path of the model in the $model property., (*7)

use Mrterryh\Repositories\Base\EloquentRepository;

class UserRepository extends EloquentRepository
{
    protected $model = 'App\User';
}

The Versions

22/09 2015

dev-master

9999999-dev

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories

22/09 2015

1.2.1

1.2.1.0

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories

22/09 2015

1.2.0

1.2.0.0

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories

12/08 2015

1.1.1

1.1.1.0

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories

12/08 2015

1.1.0

1.1.0.0

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories

09/08 2015

1.0.0

1.0.0.0

Small Laravel 5 repositories package to abstract the database layer of your web application.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Terry Harvey

database laravel eloquent repositories