PHP code example of akshay / laravel-url-maintenance

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

    

akshay / laravel-url-maintenance example snippets


composer 

'providers' => [
    // Other Service Providers...
    Akshay\Url_down\UrlDownServiceProvider::class,
],

php artisan vendor:publish --provider="Akshay\Url_down\UrlDownServiceProvider"

return [
    'routes_path' => storage_path('framework/under_maintenance_routes.json'),
    'error_code' => 500,
];
 artisan route:down

php artisan route:down
 artisan route:up

php artisan route:up
 artisan route:down
 artisan route:up
error_code: