1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-08-15 08:28:13 +02:00

phpactor: adding laravel-command template

This commit is contained in:
Henrik Hautakoski 2026-08-12 13:47:23 +02:00
parent f20a320f08
commit 48869bfa4a
2 changed files with 23 additions and 0 deletions

View file

@ -7,6 +7,7 @@ phpunit.enabled: true
code_transform.class_new.variants:
laravel-model: laravel-model
laravel-provider: laravel-provider
laravel-command: laravel-command
laravel-facade: laravel-facade
laravel-phpunit-test: laravel-phpunit-test
phpunit-test: phpunit-test

View file

@ -0,0 +1,22 @@
<?php
namespace {{ prototype.namespace }};
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
{% for class in prototype.classes %}
#[Signature('app:{{ class.name | lower }}')]
#[Description('Command description')]
class {{ class.name }} extends Command
{
/**
* Execute the console command.
*/
public function handle()
{
//
}
}
{% endfor %}