Advanced guides
Configuring
Quick start
you need to config environment variables:
GITHUB_TOKEN=
GITHUB_USERNAME=
GITHUB_REPOSITORY=
Example:
GITHUB_TOKEN=ghp_1234567890
GITHUB_USERNAME=salahhusa9
GITHUB_REPOSITORY=laravel-updater
Maintenance Mode
you can enable maintenance mode before update and disable it after update:
'maintenance_mode' => true,
'maintenance_mode_secret' => env('MAINTENANCE_MODE_SECRET', false),
Migrations
you can run migrations after update:
'migrate' => false,
Seeders
you can run seeders after update:
'seeders' => [
'\Database\Seeders\DatabaseSeeder::class',
],
Cache Clear
you can run php artisan cache:clear
after update:
'cache:clear' => false,
View Clear
you can run php artisan view:clear
after update:
'view:clear' => false,
Config Clear
you can run php artisan config:clear
after update:
'config:clear' => false,
Route Clear
you can run php artisan route:clear
after update:
'route:clear' => false,
Optimize
you can run php artisan optimize
after update:
'optimize' => false,
Pipelines
you can run pipelines before update:
'before_update_pipelines' => [
// you can add your own pipelines here
],
you can run pipelines after update:
'after_update_pipelines' => [
// you can add your own pipelines here
],
for more information about pipelines, see Run Code before or after update.