2017 © Pedro Peláez
 

library laravel-repos

Simple repository and Controller package for Laravel 5.

image

seguce92/laravel-repos

Simple repository and Controller package for Laravel 5.

  • Wednesday, September 6, 2017
  • by seguce92
  • Repository
  • 1 Watchers
  • 0 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 14 % Grown

The README.md

Installation

Install LaravelRepos as you would with any other dependency managed by Composer:, (*1)

$ composer require seguce92/laravel-repos

Configuration

After installing repo all you need is to register the Seguce92\LaravelRepos\ServiceProvider in your config/app.php configuration file:, (*2)

'providers' => [
    // Other service providers...

    Seguce92\LaravelRepos\ServiceProvider::class,
],

Creating a repository class

Use the seguce92:repos command to create your repository classes. This command will take as argument the repository class namesapce (from App) and a --model option which allows you to specify the full namespace of the Eloquent model to which the repository will be tied., (*3)

$ php artisan seguce92:repos "Repositories\FooRepository" --class="Foo" --model="App\Models\Foo"

OR, (*4)

$ php artisan seguce92:repos "Repositories\FooRepository" -c "Foo" -m "App\Models\Foo"

The above command will generate the following repository class in the app/Repositories directory:, (*5)

--hashid This option use if used hashid, (*6)

Creating a controller class

Use the seguce92:cont command to create your repository classes. This command will take as argument the repository class namesapce (from App) and a --model option which allows you to specify the full namespace of the Eloquent model to which the repository will be tied., (*7)

$ php artisan seguce92:cont "Http\Controllers\FooController" --repository="App\Repositories\FooRepository" --model="foo"

OR, (*8)

$ php artisan seguce92:cont "Http\Controllers\FooController" -r "App\Repositories\FooRepository" -m "foo"

The above command will generate the following repository class in the app/Http/Controllers directory:, (*9)

The Versions

06/09 2017

dev-master

9999999-dev

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

06/09 2017

v1.3

1.3.0.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

25/06 2017

v1.2.10

1.2.10.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

25/06 2017

v1.2.9

1.2.9.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

04/05 2017

v1.2.8

1.2.8.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.7

1.2.7.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.6

1.2.6.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.5

1.2.5.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.4

1.2.4.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.3

1.2.3.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.2

1.2.2.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2.1

1.2.1.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5

03/05 2017

v1.2

1.2.0.0

Simple repository and Controller package for Laravel 5.

  Sources   Download

MIT

The Requires

 

database repository laravel5