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.
11 lines
336 B
11 lines
336 B
#!/bin/bash |
|
cd /var/www/html |
|
php artisan tinker --execute " |
|
\$token = App\Models\ApiToken::whereNull('revoked_at')->latest()->first(); |
|
if (\$token) { |
|
echo 'token=' . \$token->token . PHP_EOL; |
|
echo 'owner=' . \$token->owner_identifier . PHP_EOL; |
|
} else { |
|
echo 'no active token found' . PHP_EOL; |
|
} |
|
" 2>&1 | grep -v Deprecated
|
|
|