+ This is a secure area of the application. Please confirm your password before continuing.
+
+
+
+
+
+
+ );
+}
diff --git a/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.js b/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.js
new file mode 100644
index 000000000..9e4687a38
--- /dev/null
+++ b/stubs/inertia-react/resources/js/Pages/Auth/ForgotPassword.js
@@ -0,0 +1,53 @@
+import Button from '@/Components/Button';
+import Guest from '@/Layouts/Guest';
+import Label from '@/Components/Label';
+import React from 'react';
+import TextInput from '@/Components/TextInput';
+import ValidationErrors from '@/Components/ValidationErrors';
+import { useForm } from '@inertiajs/inertia-react';
+
+export default function ForgotPassword({ status }) {
+ const { data, setData, post, processing, errors } = useForm({
+ email: '',
+ });
+
+ const onHandleChange = (event) => {
+ setData(event.target.name, event.target.value);
+ };
+
+ const submit = (e) => {
+ e.preventDefault();
+
+ post(route('password.email'));
+ };
+
+ return (
+
+
+ Forgot your password? No problem. Just let us know your email address and we will email you a password
+ reset link that will allow you to choose a new one.
+
+ Thanks for signing up! Before getting started, could you verify your email address by clicking on the
+ link we just emailed to you? If you didn't receive the email, we will gladly send you another.
+
+
+ {status === 'verification-link-sent' && (
+
+ A new verification link has been sent to the email address you provided during registration.
+
+ )}
+
+
+
+ );
+}
diff --git a/stubs/inertia-react/resources/js/Pages/Dashboard.js b/stubs/inertia-react/resources/js/Pages/Dashboard.js
new file mode 100644
index 000000000..99c875f03
--- /dev/null
+++ b/stubs/inertia-react/resources/js/Pages/Dashboard.js
@@ -0,0 +1,20 @@
+import Authenticated from '@/Layouts/Authenticated';
+import React from 'react';
+
+export default function Dashboard(props) {
+ return (
+ Dashboard}
+ >
+
+
+
+
You're logged in!
+
+
+
+
+ );
+}
diff --git a/stubs/inertia-react/resources/js/Pages/Welcome.js b/stubs/inertia-react/resources/js/Pages/Welcome.js
new file mode 100644
index 000000000..50f63e068
--- /dev/null
+++ b/stubs/inertia-react/resources/js/Pages/Welcome.js
@@ -0,0 +1,251 @@
+import React from 'react';
+import { InertiaLink } from '@inertiajs/inertia-react';
+
+export default function Welcome(props) {
+ return (
+
+ Laravel has wonderful, thorough documentation covering every aspect of the
+ framework. Whether you are new to the framework or have previous experience with
+ Laravel, we recommend reading all of the documentation from beginning to end.
+
+ Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript
+ development. Check them out, see for yourself, and massively level up your
+ development skills in the process.
+
+ Laravel News is a community driven portal and newsletter aggregating all of the
+ latest and most important news in the Laravel ecosystem, including new package
+ releases and tutorials.
+
+ );
+}
diff --git a/stubs/inertia-react/resources/js/app.js b/stubs/inertia-react/resources/js/app.js
new file mode 100644
index 000000000..cb900806a
--- /dev/null
+++ b/stubs/inertia-react/resources/js/app.js
@@ -0,0 +1,16 @@
+require('./bootstrap');
+
+// Import modules...
+import React from 'react';
+import { render } from 'react-dom';
+import { App } from '@inertiajs/inertia-react';
+import { InertiaProgress } from '@inertiajs/progress';
+
+const el = document.getElementById('app');
+
+render(
+ require(`./Pages/${name}`).default} />,
+ el
+);
+
+InertiaProgress.init({ color: '#4B5563' });
diff --git a/stubs/inertia-react/resources/js/bootstrap.js b/stubs/inertia-react/resources/js/bootstrap.js
new file mode 100644
index 000000000..692257769
--- /dev/null
+++ b/stubs/inertia-react/resources/js/bootstrap.js
@@ -0,0 +1,28 @@
+window._ = require('lodash');
+
+/**
+ * We'll load the axios HTTP library which allows us to easily issue requests
+ * to our Laravel back-end. This library automatically handles sending the
+ * CSRF token as a header based on the value of the "XSRF" token cookie.
+ */
+
+window.axios = require('axios');
+
+window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
+
+/**
+ * Echo exposes an expressive API for subscribing to channels and listening
+ * for events that are broadcast by Laravel. Echo and event broadcasting
+ * allows your team to easily build robust real-time web applications.
+ */
+
+// import Echo from 'laravel-echo';
+
+// window.Pusher = require('pusher-js');
+
+// window.Echo = new Echo({
+// broadcaster: 'pusher',
+// key: process.env.MIX_PUSHER_APP_KEY,
+// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
+// forceTLS: true
+// });
diff --git a/stubs/inertia/resources/js/Components/ApplicationLogo.vue b/stubs/inertia-vue/resources/js/Components/ApplicationLogo.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/ApplicationLogo.vue
rename to stubs/inertia-vue/resources/js/Components/ApplicationLogo.vue
diff --git a/stubs/inertia/resources/js/Components/Button.vue b/stubs/inertia-vue/resources/js/Components/Button.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/Button.vue
rename to stubs/inertia-vue/resources/js/Components/Button.vue
diff --git a/stubs/inertia/resources/js/Components/Checkbox.vue b/stubs/inertia-vue/resources/js/Components/Checkbox.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/Checkbox.vue
rename to stubs/inertia-vue/resources/js/Components/Checkbox.vue
diff --git a/stubs/inertia/resources/js/Components/Dropdown.vue b/stubs/inertia-vue/resources/js/Components/Dropdown.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/Dropdown.vue
rename to stubs/inertia-vue/resources/js/Components/Dropdown.vue
diff --git a/stubs/inertia/resources/js/Components/DropdownLink.vue b/stubs/inertia-vue/resources/js/Components/DropdownLink.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/DropdownLink.vue
rename to stubs/inertia-vue/resources/js/Components/DropdownLink.vue
diff --git a/stubs/inertia/resources/js/Components/Input.vue b/stubs/inertia-vue/resources/js/Components/Input.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/Input.vue
rename to stubs/inertia-vue/resources/js/Components/Input.vue
diff --git a/stubs/inertia/resources/js/Components/InputError.vue b/stubs/inertia-vue/resources/js/Components/InputError.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/InputError.vue
rename to stubs/inertia-vue/resources/js/Components/InputError.vue
diff --git a/stubs/inertia/resources/js/Components/Label.vue b/stubs/inertia-vue/resources/js/Components/Label.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/Label.vue
rename to stubs/inertia-vue/resources/js/Components/Label.vue
diff --git a/stubs/inertia/resources/js/Components/NavLink.vue b/stubs/inertia-vue/resources/js/Components/NavLink.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/NavLink.vue
rename to stubs/inertia-vue/resources/js/Components/NavLink.vue
diff --git a/stubs/inertia/resources/js/Components/ResponsiveNavLink.vue b/stubs/inertia-vue/resources/js/Components/ResponsiveNavLink.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/ResponsiveNavLink.vue
rename to stubs/inertia-vue/resources/js/Components/ResponsiveNavLink.vue
diff --git a/stubs/inertia/resources/js/Components/ValidationErrors.vue b/stubs/inertia-vue/resources/js/Components/ValidationErrors.vue
similarity index 100%
rename from stubs/inertia/resources/js/Components/ValidationErrors.vue
rename to stubs/inertia-vue/resources/js/Components/ValidationErrors.vue
diff --git a/stubs/inertia/resources/js/Layouts/Authenticated.vue b/stubs/inertia-vue/resources/js/Layouts/Authenticated.vue
similarity index 100%
rename from stubs/inertia/resources/js/Layouts/Authenticated.vue
rename to stubs/inertia-vue/resources/js/Layouts/Authenticated.vue
diff --git a/stubs/inertia/resources/js/Layouts/Guest.vue b/stubs/inertia-vue/resources/js/Layouts/Guest.vue
similarity index 100%
rename from stubs/inertia/resources/js/Layouts/Guest.vue
rename to stubs/inertia-vue/resources/js/Layouts/Guest.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/ConfirmPassword.vue b/stubs/inertia-vue/resources/js/Pages/Auth/ConfirmPassword.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/ConfirmPassword.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/ConfirmPassword.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/ForgotPassword.vue b/stubs/inertia-vue/resources/js/Pages/Auth/ForgotPassword.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/ForgotPassword.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/ForgotPassword.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/Login.vue b/stubs/inertia-vue/resources/js/Pages/Auth/Login.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/Login.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/Login.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/Register.vue b/stubs/inertia-vue/resources/js/Pages/Auth/Register.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/Register.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/Register.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/ResetPassword.vue b/stubs/inertia-vue/resources/js/Pages/Auth/ResetPassword.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/ResetPassword.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/ResetPassword.vue
diff --git a/stubs/inertia/resources/js/Pages/Auth/VerifyEmail.vue b/stubs/inertia-vue/resources/js/Pages/Auth/VerifyEmail.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Auth/VerifyEmail.vue
rename to stubs/inertia-vue/resources/js/Pages/Auth/VerifyEmail.vue
diff --git a/stubs/inertia/resources/js/Pages/Dashboard.vue b/stubs/inertia-vue/resources/js/Pages/Dashboard.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Dashboard.vue
rename to stubs/inertia-vue/resources/js/Pages/Dashboard.vue
diff --git a/stubs/inertia/resources/js/Pages/Welcome.vue b/stubs/inertia-vue/resources/js/Pages/Welcome.vue
similarity index 100%
rename from stubs/inertia/resources/js/Pages/Welcome.vue
rename to stubs/inertia-vue/resources/js/Pages/Welcome.vue
diff --git a/stubs/inertia/resources/js/app.js b/stubs/inertia-vue/resources/js/app.js
similarity index 100%
rename from stubs/inertia/resources/js/app.js
rename to stubs/inertia-vue/resources/js/app.js
diff --git a/stubs/inertia-vue/resources/js/bootstrap.js b/stubs/inertia-vue/resources/js/bootstrap.js
new file mode 100644
index 000000000..692257769
--- /dev/null
+++ b/stubs/inertia-vue/resources/js/bootstrap.js
@@ -0,0 +1,28 @@
+window._ = require('lodash');
+
+/**
+ * We'll load the axios HTTP library which allows us to easily issue requests
+ * to our Laravel back-end. This library automatically handles sending the
+ * CSRF token as a header based on the value of the "XSRF" token cookie.
+ */
+
+window.axios = require('axios');
+
+window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
+
+/**
+ * Echo exposes an expressive API for subscribing to channels and listening
+ * for events that are broadcast by Laravel. Echo and event broadcasting
+ * allows your team to easily build robust real-time web applications.
+ */
+
+// import Echo from 'laravel-echo';
+
+// window.Pusher = require('pusher-js');
+
+// window.Echo = new Echo({
+// broadcaster: 'pusher',
+// key: process.env.MIX_PUSHER_APP_KEY,
+// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
+// forceTLS: true
+// });