Added a new $rootView
property and rootView()
method to the Inertia middleware for setting the root template.
class HandleInertiaRequests extends Middleware
{
// Set root template via property
protected $rootView = 'app';
// Set root template via method
public function rootView(Request $request)
{
return 'app';
}
}