make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); $client = Laravel\Passport\Client::find('a2072649-3215-4701-af9f-d89d13875105'); if ($client === null) { echo "NOT_FOUND\n"; exit(1); } echo json_encode([ 'id' => $client->id, 'name' => $client->name, 'revoked' => (bool) $client->revoked, 'secret_set' => $client->secret !== null && $client->secret !== '', ], JSON_PRETTY_PRINT) . "\n";