Skip to content

web-id-fr/persil

Repository files navigation

Persil

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.

About

PERSIL - Laravel package for Repository and Service commands generator

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •