app/Console/Commands/SetupRedis.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $prefix = $this->generateRandomPrefix();
        if ($this->option('show')) {
            $this->line('<comment>' . $prefix . '</comment>');
            return;
        }
        $this->setPrefixInEnvironmentFile($prefix);
        $this->comment(PHP_EOL . 'Redis prefix successfully generated!' . PHP_EOL);
    }
public function handle ( ) { $ prefix = $ this -> generateRandomPrefix ( ) ; if ( $ this -> option ( 'show' ) ) { $ this -> line ( '<comment>' . $ prefix . '</comment>' ) ; return ; } $ this -> setPrefixInEnvironmentFile ( $ prefix ) ; $ this -> comment ( PHP_EOL . 'Redis prefix successfully generated!' . PHP_EOL ) ; }
Execute the console command.
Execute the console command .