PHP code example of akinams053 / seat-pap
1. Go to this page and download the library: Download akinams053/seat-pap library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
akinams053 / seat-pap example snippets
bash
cd /var/www/seat
# 安装 / 升级 / 回退:把 2.0.0 换成目标 tag(如回退用 1.0.0)
sudo composer or:publish --force --provider="Seat\Kassie\Calendar\CalendarServiceProvider"
sudo -u www-data php artisan migrate --force
sudo -u www-data php artisan view:clear
sudo -u www-data php artisan route:clear
sudo -u www-data php artisan cache:clear
bash
# 将 write_fleet 加入 SSO 请求列表
php artisan tinker --execute="\$s = \Seat\Services\Models\GlobalSetting::where('name', 'sso_scopes')->first(); \$v = json_decode(\$s->value, true); \$v[0]['scopes'][] = 'esi-fleets.write_fleet.v1'; \$s->value = json_encode(\$v); \$s->save(); echo 'done';"
php artisan cache:clear