PHP code example of anisaronno / laravel-self-updater
1. Go to this page and download the library: Download anisaronno/laravel-self-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/ */
anisaronno / laravel-self-updater example snippets
"exclude_items" => [
'.env',
'.git',
'storage',
'node_modules',
'vendor',
// Add your custom exclusions here
],
"middleware" => ['web'],
''
use AnisAronno\LaravelSelfUpdater\Services\VCSProvider\VCSProviderFactory;
// Register a new provider
VCSProviderFactory::registerProvider('custom-vcs.com', YourCustomVCSProvider::class);
// Remove a provider
VCSProviderFactory::removeProvider('custom-vcs.com');
// Check if a provider is registered
$isRegistered = VCSProviderFactory::hasProvider('custom-vcs.com');
// Get all registered providers
$providers = VCSProviderFactory::getProviders();
protected function schedule(Schedule $schedule)
{
$schedule->command('update:initiate')->dailyAt('01:00');
}
use Illuminate\Support\Facades\Schedule;
Schedule::command('update:initiate')->dailyAt('01:00');