mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:14:04 +00:00
move console classes to Console directory
This commit is contained in:
parent
50d903feb8
commit
8418fac990
5 changed files with 6 additions and 5 deletions
34
tests/Etc/Console/ExampleQuestionCommand.php
Normal file
34
tests/Etc/Console/ExampleQuestionCommand.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Tests\Etc\Console;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ExampleQuestionCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'age:ask {name}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Command description';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$age = $this->ask('What is your age?');
|
||||
|
||||
$this->line($this->argument('name') . "'s age is $age.");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue