PHP code example of fbollon / lara-custom-error-pages

1. Go to this page and download the library: Download fbollon/lara-custom-error-pages 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/ */

    

fbollon / lara-custom-error-pages example snippets


return [

    /** Custom header to  use your own fonts and css
     *
     * 'custom_header' => 'layouts.partials.header',
     *
     */

    'custom_header' => null,

    /** to display an autorefresh message and a countdown */
    'autorefresh' => [
        /** error numbers for which you want an autorefresh to reload the page */
        'errors' => [
            // 503,
        ],
        /** autorefresh interval in seconds */
        'interval' => 120
    ]
];
bash
php artisan vendor:publish --tag="lara-custom-error-pages-config"
bash
php artisan vendor:publish --tag="lara-custom-error-pages-views"
bash
php artisan vendor:publish --tag="lara-custom-error-pages-assets"