app/Exceptions/FileNotFoundException.php
use Illuminate\Contracts\Filesystem\FileNotFoundException as FileNotFoundExceptionBase; class FileNotFoundException extends FileNotFoundExceptionBase{ public $fileName; public function __construct($fileName) { $this->fileName = $fileName; parent::__construct(); } public function __toString() { return 'File not found: '.$this->fileName; }}