PHP code example of next-tecnology / nova-custom-errors

1. Go to this page and download the library: Download next-tecnology/nova-custom-errors 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/ */

    

next-tecnology / nova-custom-errors example snippets


// config/nova.php
return [
    // ...
    'middleware' => [
        'web',
       .....
        \NextTecnology\NovaCustomErrors\Http\Middleware\HandleNovaErrors::class,
        .....
    ],
    // ...
];

$view = 'nova-custom-errors::' . $response->getStatusCode();
if (view()->exists($view)) {
    return response()->view($view);
}
bash
php artisan vendor:publish \
  --provider="NextTecnology\\NovaCustomErrors\\NovaCustomErrorsServiceProvider" \
  --tag="nova-custom-errors-views"
bash
  php artisan vendor:publish \
    --provider="NextTecnology\\NovaCustomErrors\\NovaCustomErrorsServiceProvider" \
    --tag="nova-custom-errors-views"