Skip to content

npabisz/laravel-repositories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

Model repositories

Repositories and more for Laravel

Installation

composer require npabisz/laravel-repositories

Creating repository

php artisan make:repository Example
php artisan make:repository Example --model-namespace=Some\\Namespace

Creating model

php artisan make:repository-model MyModel

php artisan make:repository-model MyModel --model-namespace=App\Models --attributes="user_id=integer,name=string"

Creating migration

php artisan make:repository-migration MyModel

php artisan make:repository-migration MyModel --model-namespace=App\Models"

Creating API controller

php artisan make:repository-api MyModel

php artisan make:repository-api MyModel --model-namespace=App\Models" --api-namespace="App\Http\Controllers\Api" --api-repository-contract="App\Repositories\Contracts\MyModelRepositoryContract"

Namespace

Case scenario for model App\Models\User\Image, provide namespace excluding App\Models

php artisan make:repository --namespace=User

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages