public static function diskNotAllowed($disk) { return new static("The disk `{$disk}` is not in the allowed disks for media."); }
public function test_it_returns_a_403_for_dissalowed_disk() { $e = (new SampleExceptionHandler())->render(ForbiddenException::diskNotAllowed('foo')); $this->assertHttpException($e, 403); }