web-id/persil

This is my package persil

Fund package maintenance!
web-id-fr

3.0.0 2023-10-11 14:32 UTC

This package is auto-updated.

Last update: 2024-10-11 17:15:51 UTC


README

Installation

Require this package with composer. It is recommended to only require the package for development.

composer require web-id/persil --dev

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Publish Laravel stubs compatible with Larastan

List of stubs : here

php artisan vendor:publish --tag=custom-laravel-stubs

Make repository file

Empty repository

php artisan make:repository UserRepository

Repository with wanted methods

php artisan make:repository UserRepository --update --delete

Repository with all, store, update, delete methods

php artisan make:repository UserRepository --resource

Repository using cache system

php artisan make:repository UserRepository --update --delete --cache
php artisan make:repository UserRepository --resource --cache

List of available methods (options)

Make service file

Create service file on app/Services (template)

php artisan make:service PaymentService

Create service file with testing service file, interface and provider

php artisan make:service PaymentService --provider

Credits

License

The MIT License (MIT). Please see License File for more information.