app/Console/Commands/CreateClientCommand.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle()
    {
        $client = new Client;
        $client->client_id = (string)Uuid::uuid4();
        $client->secret    = (string)Uuid::uuid4();
        $client->save();
        echo "client_id: {$client->client_id}\nsecret: {$client->secret}\n\n";
        echo '$image = new \PixelStorage\Client("http://localhost:9999",'
            . var_export($client->client_id, true) . ', '
            . var_export($client->secret, true). ');';
        echo "\n\n";
    }
public function handle ( ) { $ client = new Client ; $ client -> client_id = ( string ) Uuid :: uuid4 ( ) ; $ client -> secret = ( string ) Uuid :: uuid4 ( ) ; $ client -> save ( ) ; echo " client_id:  { $ client -> client_id } \n secret:  { $ client -> secret } \n \n " ; echo '$image = new \PixelStorage\Client("http://localhost:9999",' . var_export ( $ client -> client_id , true ) . ', ' . var_export ( $ client -> secret , true ) . ');' ; echo " \n \n " ; }
Execute the console command.
Execute the console command .