Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
<?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');
    }
}