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.
1 parent 035b799 commit 9d5e6e1Copy full SHA for 9d5e6e1
.gitignore
@@ -3,3 +3,4 @@ composer.phar
3
composer.lock
4
vendor
5
coverage/*
6
+.idea/*
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