Skip to content

Package to implement the repository pattern into Laravel

Notifications You must be signed in to change notification settings

DevKhris/laraarch-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaraArchRepository"

LaraArchRepository is a laravel package for implementation of the Repository Design Pattern for abstracting the Models logic, usefull when you need more flexibility and want to preserve the "fat model, skinny controller" approach in order to achieve more code decoupling and scalability

Installation

Install package with composer

$ composer require devkhris/laraarch-repository

Publish config with provider

$ @php artisan vendor:publish --provider="DevKhris\LaraArchRepository\Providers\RepositoryServiceProvider" --tag="config"

Usage

For creating a repository from a model just type the make command in the artisan console with the model name

E.g:

$ php artisan make:repository User

Features

  • Fast implementation of Repositories for Models with the artisan command
  • Support for string-based identifiers (UUIDs) and integers
  • Eloquent-based

Contributing and Issues

About

Package to implement the repository pattern into Laravel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages