usmonaliyev/repository-pattern

1.2.3 2023-06-08 05:29 UTC

This package is auto-updated.

Last update: 2025-01-08 08:54:37 UTC


README

This repository helps to you that create interface, create repository class in laravel projects.

Installation

Install this package with composer

composer require --dev usmonaliyev/repository-pattern

Using

php artisan create:pattern Foo

This command creates FooInterface in App/Interfaces folder.

It creates FooRepository in App/Repositories which is implemented FooInterface.

It inserts $this->app->singleton(FooInterface::class, FooRepository::class); to boot function of App/Providers/AppServiceProvider.php

Authors