Plank\Mediable\Exceptions\MediaUpload\FileNotFoundException::fileNotFound PHP Method

fileNotFound() public static method

public static fileNotFound ( $path )
    public static function fileNotFound($path)
    {
        return new static("File `{$path}` does not exist.");
    }

Usage Example

 public function test_it_returns_a_404_for_missing_file()
 {
     $e = (new SampleExceptionHandler())->render(FileNotFoundException::fileNotFound('non/existing.jpg'));
     $this->assertHttpException($e, 404);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\FileNotFoundException::fileNotFound
FileNotFoundException