PHP code example of pcinaglia / laraupdater

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

    

pcinaglia / laraupdater example snippets




function beforeUpdate(): bool
{
    Artisan::call('backup::db');
    return true;
}


function afterUpdate(): bool
{
    Artisan::call('migrate --force');
    Artisan::call('db::seed');
    Artisan::call('module::seed');

    return true;
}


'providers' => [
    // ...
    pcinaglia\laraupdater\LaraUpdaterServiceProvider::class,
];
sh
php artisan vendor:publish --provider="pcinaglia\laraupdater\LaraUpdaterServiceProvider"