Download the PHP package yorki/model-repository without Composer
On this page you can find all versions of the php package yorki/model-repository. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yorki/model-repository
More information about yorki/model-repository
Files in yorki/model-repository
Package model-repository
Short Description Repositories for Laravel models
License MIT
Homepage https://github.com/npabisz/laravel-repositories
Informations about the package model-repository
Model repositories
Repositories and more for Laravel
Installation
Creating repository
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
All versions of model-repository with dependencies
illuminate/support Version ^11.0
illuminate/contracts Version ^11.0
illuminate/view Version ^11.0
illuminate/container Version ^11.0
illuminate/console Version ^11.0
illuminate/cache Version ^11.0