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.
List of stubs : here
php artisan vendor:publish --tag=custom-laravel-stubs
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)
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
The MIT License (MIT). Please see License File for more information.