Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php
/**
* Created by PhpStorm.
* User: danilo
* Date: 18/12/15
* Time: 10:58
*/
namespace Modules\Core\Commands\Installers\Scripts;
use Illuminate\Console\Command;
use Modules\Core\Commands\Installers\SetupScript;
class SetAppKey implements SetupScript
{
/**
* Fire the install script
* @param Command $command
* @return mixed
*/
public function fire(Command $command)
{
if ($command->option('verbose')) {
$command->call('key:generate');
$command->call('vendor:publish', ['--provider' => 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider']);
$command->call('jwt:generate');
return;
}
$command->callSilent('vendor:publish', ['--provider' => 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider']);
$command->callSilent('jwt:generate');
$command->callSilent('key:generate');
}
}