for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yab\FlightDeck\Commands;
use Yab\FlightDeck\FlightDeck;
use Illuminate\Console\Command;
class GenerateToken extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'flightdeck:generate {name} {expires_at?}';
* The console command description.
protected $description = 'Generate a fresh API token for authorization requests';
* Execute the console command.
* @return mixed
public function handle()
$token = FlightDeck::generate($this->argument('name'), $this->argument('expires_at'));
$this->info($token);
}