PHP code example of djl997 / laravel-release-scheduler

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

    

djl997 / laravel-release-scheduler example snippets


use Djl997\LaravelMaintenanceScheduler\Models\MaintenanceSchedule;

$message = MaintenanceSchedule::getMaintenanceMessage();

use Djl997\LaravelMaintenanceScheduler\Models\MaintenanceSchedule;

$version = MaintenanceSchedule::getCurrentVersion();

use Djl997\LaravelMaintenanceScheduler\Models\MaintenanceSchedule;

MaintenanceSchedule::observe(YourObserver::class);

php artisan vendor:publish --tag=maintenance-config

php artisan vendor:publish --tag=maintenance-migrations
bash
php artisan migrate
bash
php artisan maintenance:install

php artisan vendor:publish --tag=maintenance-config