Skip to content

Commit ee80f5b

Browse files
committed
use short cur to report errors
1 parent 6714298 commit ee80f5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Responses/Laravel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ public static function response(): self
1717
return self::get();
1818
}
1919

20+
public function addError(array $error)
21+
{
22+
$this->add(Error::fromArray($error));
23+
24+
return $this;
25+
}
26+
2027
/**
2128
* @throws StatusUnavailableException
2229
*/

0 commit comments

Comments
 (0)