🔧
This commit is contained in:
13
resources/js/Pages/Auth/login.vue
Normal file
13
resources/js/Pages/Auth/login.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup>
|
||||
import { Head } from "@inertiajs/vue3";
|
||||
|
||||
const props = defineProps(["user"]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Head title="User Profile" />
|
||||
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">Profile</h2>
|
||||
|
||||
<div class="py-12">Hello, {{ user.name }}</div>
|
||||
</template>
|
||||
@@ -1 +1,15 @@
|
||||
import './bootstrap';
|
||||
import { createApp, h } from 'vue'
|
||||
import { createInertiaApp } from '@inertiajs/vue3'
|
||||
|
||||
createInertiaApp({
|
||||
resolve: name => {
|
||||
const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
|
||||
return pages[`./Pages/${name}.vue`]
|
||||
},
|
||||
setup({ el, App, props, plugin }) {
|
||||
createApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.mount(el)
|
||||
},
|
||||
})
|
||||
12
resources/views/app.blade.php
Normal file
12
resources/views/app.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||
@vite('resources/js/app.js')
|
||||
@inertiaHead
|
||||
</head>
|
||||
<body>
|
||||
@inertia
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user