Files
expose/app/Commands/ShareCurrentWorkingDirectoryCommand.php
Marcel Pociot 28c4009dff wip
2020-04-25 11:42:40 +02:00

20 lines
412 B
PHP

<?php
namespace App\Commands;
use Illuminate\Console\Command;
class ShareCurrentWorkingDirectoryCommand extends ShareCommand
{
protected $signature = 'share-cwd {host?} {--subdomain=} {--auth=}';
public function handle()
{
$this->input->setArgument('host', basename(getcwd()).'.test');
$this->input->setOption('subdomain', basename(getcwd()));
parent::handle();
}
}