PHP code example of tanedaa / laravel-dynamic-maintenance

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

    

tanedaa / laravel-dynamic-maintenance example snippets


Route::middleware('maintenance')->group(function () {
    Route::get('/', function () {
        return view('welcome');
    });
});
shell
php artisan vendor:publish --tag=laravel-dynamic-maintenance
shell
php artisan down:routes {routes} {--secret}
php artisan up:routes {routes} | all
shell
php artisan down:routes welcome, home.contact
php artisan down:routes home.about --secret=mySecretKey
php artisan down.routes api/*
shell
php artisan up:routes home.index, home.contact
php artisan up.routes api/*
php artisan up.routes all