File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,18 @@ public function share(Request $request)
49
49
];
50
50
}
51
51
52
+ /**
53
+ * Sets the root template that will be loaded on the first page visit.
54
+ *
55
+ * @see https://inertiajs.com/server-side-setup#root-template
56
+ * @param Request $request
57
+ * @return string
58
+ */
59
+ public function rootView (Request $ request )
60
+ {
61
+ return $ this ->rootView ;
62
+ }
63
+
52
64
/**
53
65
* Handle the incoming request.
54
66
*
@@ -138,16 +150,4 @@ public function resolveValidationErrors(Request $request)
138
150
return $ bags ->has ('default ' ) ? $ bags ->get ('default ' ) : $ bags ->toArray ();
139
151
});
140
152
}
141
-
142
- /**
143
- * Sets the root template that will be loaded on the first page visit.
144
- *
145
- * @see https://inertiajs.com/server-side-setup#root-template
146
- * @param Request $request
147
- * @return string
148
- */
149
- public function rootView (Request $ request )
150
- {
151
- return $ this ->rootView ;
152
- }
153
153
}
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ use Inertia\Middleware;
7
7
8
8
class {{ class }} extends Middleware
9
9
{
10
+ /**
11
+ * The root template that will be loaded on the first page visit.
12
+ *
13
+ * @var string
14
+ */
15
+ protected $rootView = 'app';
16
+
10
17
/**
11
18
* Determines the current asset version.
12
19
*
You can’t perform that action at this time.
0 commit comments