PHP code example of argws / laravel-updater

1. Go to this page and download the library: Download argws/laravel-updater 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/ */

    

argws / laravel-updater example snippets


$schedule->command('system:update:notify')->hourly();
ini
extension=pdo_sqlite
dotenv
UPDATER_TRIGGER_DRIVER=queue
UPDATER_UI_FORCE_SYNC=false

UPDATER_GIT_PATH=/var/www/sua-aplicacao   # opcional
UPDATER_GIT_AUTO_DETECT_PATH=true
UPDATER_GIT_REMOTE=origin
UPDATER_GIT_BRANCH=main
UPDATER_GIT_FF_ONLY=true
UPDATER_GIT_AUTO_INIT=false
UPDATER_GIT_DEFAULT_UPDATE_MODE=ff-only
bash
php artisan db:seed --class=Database\Seeders\ReformaTributariaSeeder --force
bash
php artisan system:update:check
php artisan system:update:run --force
php artisan system:update:rollback --force
php artisan system:update:status
bash
php artisan config:clear
php artisan cache:clear
bash
php artisan vendor:publish --tag=updater-config --force
php artisan vendor:publish --tag=updater-views --force
bash
php artisan config:clear
php artisan cache:clear
bash
# execução real (tolerante)
php artisan updater:migrate --force

# modo estrito
php artisan updater:migrate --force --mode=strict

# dry-run (não executa SQL)
php artisan updater:migrate --force --dry-run
dotenv
UPDATER_CACHE_IGNORE_ROUTE_CACHE_DUPLICATE_NAME=true