PHP code example of dtkt / errors
1. Go to this page and download the library: Download dtkt/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/ */
dtkt / errors example snippets
protected function registerErrorViewPaths()
{
$paths = collect(config('view.paths'));
View::addNamespace('errors', $paths->map(function ($path) {
return "{$path}/errors";
})->push(dirname((new \ReflectionClass(\Illuminate\Foundation\Exceptions\Handler::class))->getFileName()).'/views')->all());
}