Skip to content

Commit 93d932d

Browse files
committed
Update LoginPage component to use script setup for years prop and refresh asset version in mix-manifest.json
1 parent 82c3672 commit 93d932d

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=7d351947b5dcc61bbcf6223625a815c5",
2+
"/app.js": "/app.js?id=dd1bbc06c62ae90c9bfd1815f2238a6c",
33
"/manifest.js": "/manifest.js?id=61f2d62cc41feccba141cbb9c3075397",
44
"/app.css": "/app.css?id=a0015dae19ee9535245eef6cf827b723",
55
"/vendor.js": "/vendor.js?id=4b9f97134193d3a20991ba9c2f5f06e3",

resources/js/pages/Login.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@
9494
</form>
9595
</div>
9696
</template>
97-
97+
<script setup>
98+
defineProps({ years: Array })
99+
</script>
98100
<script>
99101
import Auth from '@/layouts/Auth'
100102
import { Button, Checkbox } from 'laravel-nova-ui'
101103
102-
defineProps({ years: Array })
103104
export default {
104105
name: 'LoginPage',
105106

src/Http/Controllers/LoginController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public function showLoginForm()
4949
return Inertia::location($loginPath);
5050
}
5151
$years = range(config('nova.initialyear'), date('Y'));
52-
return Inertia::render('Nova.Login', ['years' => $years]);
52+
return Inertia::render('Nova.Login', [
53+
'years' => $years,
54+
]);
5355
}
5456

5557
/**

0 commit comments

Comments
 (0)