Releases: rifrocket/trait-console
Releases · rifrocket/trait-console
3.3
3.2
fixed some security issues.
fixed some security issues.
minor bugs fixed in Arguments
Arguments
-b or --boot
php artisan make:trait NameOfYourTrait -b MethodName
Creates a trait with a boot method named bootMethodName.
-s or --scope
php artisan make:trait NameOfYourTrait -s MethodName
Creates a trait with a scope method named scopeMethodName.
Update Arguments scope and boot methods
Arguments
-b or --boot
php artisan make:trait NameOfYourTrait -b=MethodName
Creates a trait with a boot method named bootMethodName.
-s or --scope
php artisan make:trait NameOfYourTrait -s=MethodName
Creates a trait with a scope method named scopeMethodName.
Console command to create Traits for the Laravel
Laravel does not provide the command to create Traits out of the box but Laravel does provide commands generation for almost all kinds of components. This package introduces the convenience of Laravel's artisan makes for trait generation.