Skip to content

Commit 17c7a0c

Browse files
committed
wip
1 parent ccc6df3 commit 17c7a0c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function share(Request $request): array
4040

4141
return array_merge(parent::share($request), [
4242
...parent::share($request),
43+
'name' => config('app.name'),
44+
'quote' => ['message' => trim($message), 'author' => trim($author)],
4345
'auth' => [
4446
'user' => $request->user(),
4547
],
46-
'name' => config('app.name'),
47-
'quote' => ['message' => trim($message), 'author' => trim($author)],
4848
]);
4949
}
5050
}

resources/js/types/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export interface NavItem {
1717
}
1818

1919
export interface SharedData {
20-
auth: Auth;
2120
name: string;
21+
quote: { message: string; author: string };
22+
auth: Auth;
2223
ziggy: {
2324
location: string;
2425
url: string;

0 commit comments

Comments
 (0)