src/Console/ClientCommand.php
protected function createClientCredentialsClient(ClientRepository $clients)
    {
        $name = $this->option('name') ?: $this->ask(
            'What should we name the client?',
            config('app.name').' ClientCredentials Grant Client'
        );

        $client = $clients->create(
            null, $name, ''
        );

        $this->info('New client created successfully.');

        $this->outputClientDetails($client);
    }
protected function createClientCredentialsClient(ClientRepository $clients)
    {
        $name = $this->option('name') ?: $this->ask(
            'What should we name the client?',
            config('app.name').' ClientCredentials Grant Client'
        );

        $client = $clients->create(
            null, $name, ''
        );

        $this->info('New client created successfully.');

        $this->outputClientDetails($client);
    }
protected function createClientCredentialsClient ( ClientRepository $ clients ) { $ name = $ this -> option ( 'name' ) ? : $ this -> ask ( 'What should we name the client?' , config ( 'app.name' ) . ' ClientCredentials Grant Client' ) ; $ client = $ clients -> create ( null , $ name , '' ) ; $ this -> info ( 'New client created successfully.' ) ; $ this -> outputClientDetails ( $ client ) ; }
Create a client credentials grant client.

@param  \Laravel\Passport\ClientRepository  $clients
@return void
Create a client credentials grant client .