PHP code example of digifactory / laravel-partial-down
1. Go to this page and download the library: Download digifactory/laravel-partial-down 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/ */
digifactory / laravel-partial-down example snippets
Route::group(['prefix' => 'backend', 'middleware' => 'partialDown:backend'], function () { });
Route::get('backend', function () { })->middleware('partialDown:backend');
protected $signature = 'partial-down {part}
{--message= : The message for the maintenance mode}
{--retry= : The number of seconds after which the request may be retried}
{--allow=* : IP or networks allowed to access the application while in maintenance mode}';
php artisan partial-down backend