PHP code example of cmsmaxinc / filament-error-pages

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

    

cmsmaxinc / filament-error-pages example snippets


->plugins([
    FilamentErrorPagesPlugin::make(),
])

->plugins([
    FilamentErrorPagesPlugin::make()
        ->routes([
            'admin/*',    // Will match any path starting with admin/
            'dashboard/*', // Will match any path starting with dashboard/
            '/',          // Will match the root path
            'api/*',      // Will match any path starting with api/
        ]),
])

->plugins([
    FilamentErrorPagesPlugin::make()
        ->routes([
            'admin/*',
        ])
        ->onlyShowForConfiguredRoutes(),
])
bash
'./vendor/cmsmaxinc/filament-error-pages/resources/**/*.blade.php',
bash
php artisan vendor:publish --tag="filament-error-pages-translations"