Plank\Mediable\Exceptions\MediaUpload\ForbiddenException::diskNotAllowed PHP Method

diskNotAllowed() public static method

public static diskNotAllowed ( $disk )
    public static function diskNotAllowed($disk)
    {
        return new static("The disk `{$disk}` is not in the allowed disks for media.");
    }

Usage Example

 public function test_it_returns_a_403_for_dissalowed_disk()
 {
     $e = (new SampleExceptionHandler())->render(ForbiddenException::diskNotAllowed('foo'));
     $this->assertHttpException($e, 403);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\ForbiddenException::diskNotAllowed
ForbiddenException