PHP code example of neomusic / laravel-section-error-views

1. Go to this page and download the library: Download neomusic/laravel-section-error-views 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/ */

    

neomusic / laravel-section-error-views example snippets

resources/views/backend/errors
resources/views/frontend/errors

    public function sectionRender($request,Exception $e)
      {
        if($request->is('admin/*')) {
          $this->renderBackoffice($request, $e);
        } else {
          $this->renderFrontend($request, $e);
        }
      }