You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
532 B
16 lines
532 B
<?php |
|
require '/var/www/html/vendor/autoload.php'; |
|
$app = require '/var/www/html/bootstrap/app.php'; |
|
$app->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";
|
|
|