2017 © Pedro Peláez
 

library laravel-repository

Laravel 5 - very simply repositories without all the fluff...

image

sasin91/laravel-repository

Laravel 5 - very simply repositories without all the fluff...

  • Thursday, January 19, 2017
  • by Sasin91
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel 5 Repositories

Simply repositories without all the fluff...

Laravel 5 Repositories is used to abstract the data layer, making our application more flexible to maintain., (*1)

Installation

Composer

Execute the following command to get the latest version of the package:, (*2)

composer require sasin91/laravel-repository:@dev

Note, to pull this in you might need to set your minimum stability in composer.json optionally, prefer stable releases. ```composer.json "minimum-stability":"dev", "prefer-stable": true, (*3)


### Laravel In your `config/app.php` add `Sasin91\LaravelRepository\RepositoryServiceProvider::class` to the end of the `Package Service Providers` array: ```php 'providers' => [ ... Sasin91\LaravelRepository\RepositoryServiceProvider::class, ],

Publish Configuration, (*4)

php artisan vendor:publish

Commands

To generate everything you need for your Model, run this command:, (*5)

php artisan make:repository UserRepository {--generic} {--database=?} {--model=?}

if no database or model option is provided with the generic option, it'll attempt to guess a model, in your App namespace., (*6)

@note: the model option is really just an alias to the database option., (*7)

The Versions

19/01 2017

dev-master

9999999-dev

Laravel 5 - very simply repositories without all the fluff...

  Sources   Download

MIT

The Requires

 

by Jonas Kervin Hansen

database laravel repository eloquent model