usmonaliyev / repository-pattern
1.2.3
2023-06-08 05:29 UTC
Requires
- php: ^7.4|^8
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