Plank\Mediable\Exceptions\MediaUpload\FileExistsException::fileExists PHP Method

fileExists() public static method

public static fileExists ( $path )
    public static function fileExists($path)
    {
        return new static("A file already exists at `{$path}`.");
    }

Usage Example

 public function test_it_returns_a_409_on_duplicate_file()
 {
     $e = (new SampleExceptionHandler())->render(FileExistsException::fileExists('already/existing.jpg'));
     $this->assertHttpException($e, 409);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\FileExistsException::fileExists
FileExistsException