PHP code example of rohsyl / laraupdater

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

    

rohsyl / laraupdater example snippets


'providers' => [
    // ...
    rohsyl\laraupdater\LaraUpdaterServiceProvider::class,
];

php artisan vendor:publish --provider="rohsyl\laraupdater\LaraUpdaterServiceProvider"



function laraupdater_post_upgrade($currentVersion, $newlyInstalledVersion) {

	command-1-to-connect-db
	command-2-to-create-table
	command-3-to-insert-data
	
	return true;
}