Skip to content

Commit 5414012

Browse files
committed
updating the intertia return array
1 parent 47dc252 commit 5414012

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public function share(Request $request): array
3939
{
4040
[$message, $author] = str(Inspiring::quotes()->random())->explode('-');
4141

42-
return array_merge(parent::share($request), [
42+
return [
43+
...parent::share($request),
4344
'name' => config('app.name'),
4445
'quote' => ['message' => trim($message), 'author' => trim($author)],
4546
'auth' => [
@@ -49,6 +50,6 @@ public function share(Request $request): array
4950
...(new Ziggy)->toArray(),
5051
'location' => $request->url(),
5152
],
52-
]);
53+
];
5354
}
5455
}

0 commit comments

Comments
 (0)