Skip to content

Commit 254fc9c

Browse files
authored
Remove redundant prop sharing from the middleware (#21)
1 parent be15c9b commit 254fc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Middleware/HandleInertiaRequests.php

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

41-
return array_merge(parent::share($request), [
41+
return [
4242
...parent::share($request),
4343
'name' => config('app.name'),
4444
'quote' => ['message' => trim($message), 'author' => trim($author)],
4545
'auth' => [
4646
'user' => $request->user(),
4747
],
48-
]);
48+
];
4949
}
5050
}

0 commit comments

Comments
 (0)