We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60f363c + e8c5cfd commit 0747374Copy full SHA for 0747374
src/Support/Response.php
@@ -90,6 +90,10 @@ public function makeRequestOneTimePasswordResponse()
90
*/
91
private function getView()
92
{
93
+ if ($this->config('type_view') === 'inertia') {
94
+ return \Inertia\Inertia::render($this->config('view'))->toResponse($this->getRequest())->throwResponse();
95
+ }
96
+
97
return view($this->config('view'));
98
}
99
src/config/config.php
@@ -54,6 +54,11 @@
54
55
'otp_secret_column' => 'google2fa_secret',
56
57
+ /*
58
+ * Type of user view, blade or inertia
59
+ */
60
+ 'type_view' => 'blade',
61
62
/*
63
* One Time Password View.
64
0 commit comments