mirror of
https://github.com/pnx/dotfiles
synced 2026-08-17 00:58:12 +02:00
phpactor: adding laravel-command template
This commit is contained in:
parent
f20a320f08
commit
48869bfa4a
2 changed files with 23 additions and 0 deletions
22
phpactor/templates/laravel-command/SourceCode.php.twig
Normal file
22
phpactor/templates/laravel-command/SourceCode.php.twig
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue