8000 [Docs] Added missing variable in code sample. (#258) · Hy0320/laravel-json-api@7928821 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7928821

Browse files
Jannislindyhopchris
authored andcommitted
[Docs] Added missing variable in code sample. (cloudcreativity#258)
Added missing variable in code sample.
1 parent c2dcb65 commit 7928821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ use CloudCreativity\LaravelJsonApi\Document\Error;
9090
try {
9191
dispatchNow(new ChargeCard($token));
9292
} catch (\App\PaymentException $ex) {
93-
Error::create([
93+
$error = Error::create([
9494
'title' => 'Payment Required',
9595
'detail' => $ex->getMessage(),
9696
'status' => '402',

0 commit comments

Comments
 (0)
0