Compare commits

...

6 Commits

6 changed files with 72 additions and 22 deletions

View File

@ -5,6 +5,7 @@
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"control_character_style": "names", "control_character_style": "names",
"copy_with_empty_selection": false, "copy_with_empty_selection": false,
"default_line_ending": "unix",
"fallback_encoding": "UTF-8", "fallback_encoding": "UTF-8",
"folder_exclude_patterns": "folder_exclude_patterns":
[ [
@ -24,13 +25,16 @@
[ [
"dlig" "dlig"
], ],
"font_size": 9,
"git_diff_target": "head",
"hardware_acceleration": "opengl", "hardware_acceleration": "opengl",
"highlight_modified_tabs": true, "highlight_modified_tabs": true,
"ignored_packages": "ignored_packages":
[ [
"Vintage", "Vintage",
], ],
"line_padding_bottom": 2, "index_workers": 4,
"line_padding_bottom": 3,
"line_padding_top": 2, "line_padding_top": 2,
"material_theme_accent_cyan": true, "material_theme_accent_cyan": true,
"material_theme_bold_tab": true, "material_theme_bold_tab": true,
@ -40,5 +44,4 @@
"show_line_endings": true, "show_line_endings": true,
"theme": "Material-Theme.sublime-theme", "theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true, "translate_tabs_to_spaces": true,
"font_size": 9,
} }

View File

@ -5,7 +5,9 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<!-- Set the base URL for all relative URLs within the document -->
<base href="{{ url('/') }}">
<meta name="robots" content="index,follow"> <meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow"> <meta name="googlebot" content="index,follow">
@ -19,14 +21,15 @@
<meta name="rating" content="General"> <meta name="rating" content="General">
<meta name="url" content="{{ url('/') }}"> <meta name="url" content="{{ url('/') }}">
<meta name="subject" content="{{$pageSubject ?? "your website's subject" }}""> <meta name="subject" content="{{ \$pageSubject ?? "your website's subject" }}"">
<meta name="description" content="{{ $pageDescription ?? 'A description of the page' }}"> <meta name="description" content="{{ \$pageDescription ?? 'A description of the page' }}">
<title>{{ config('app.name', 'Laravel') }}</title> <title>{{ config('app.name', 'Laravel') }}</title>
<meta name="application-name" content="Application Name"> <meta name="application-name" content="{{ config('app.name', 'Laravel') }}">
<!-- Privacy --> <!-- Privacy -->
<meta name="twitter:dnt" content="on"> <meta name="twitter:dnt" content="on">
<meta name="pinterest" content="nopin" description="No pinning allowed.">
<!-- analytics --> <!-- analytics -->
<!-- --> <!-- -->
@ -48,23 +51,25 @@
<link href="{{ url('fonts/fontfam/font.woff2') }}" rel="preload" as="font" type="font/woff2" crossorigin="anonymous"> <link href="{{ url('fonts/fontfam/font.woff2') }}" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
<!-- Styles --> <!-- Styles -->
<link href="{{ mix('css/app.css') }}" rel="stylesheet" media="all" integrity="{{ env('INTEGRITY_HASH_APP_CSS') }}"> <link href="{{ mix('/css/app.css') }}" rel="stylesheet" media="all" integrity="{{ env('INTEGRITY_HASH_APP_CSS') }}">
@yield('css') @yield('css')
<!-- Scripts --> <!-- Scripts -->
<script> <script>
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { if (localStorage.theme === "dark" || (!("theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
document.documentElement.classList.remove('light') document.documentElement.classList.add("dark"); localStorage.theme = "dark";
document.documentElement.classList.add('dark') } else {
document.documentElement.classList.remove("dark"); localStorage.theme = "light";
} }
</script> </script>
@routes @routes
<script src="{{ mix('js/app.js') }}" integrity="{{ env('INTEGRITY_HASH_APP_JS') }}" defer></script> <script src="{{ mix('/js/app.js') }}" integrity="{{ env('INTEGRITY_HASH_APP_JS') }}" defer></script>
@inertiaHead @inertiaHead
</head> </head>
<body class="font-sans antialiased"> <body class="font-sans antialiased">
@inertia @inertia
</body> </body>

View File

@ -8,24 +8,26 @@
docker-compose.override.yml docker-compose.override.yml
Homestead.json Homestead.json
Homestead.yaml Homestead.yaml
auth.json
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
/storage/*.key /storage/*.key
# Directories # Directories
/node_modules /node_modules
/public/build
/public/hot /public/hot
/public/storage /public/storage
/vendor /vendor
### Editor Specific ### Editor Specific
# Files # Files
${1:*}.sublime-project /*.sublime-project
${1:*}.sublime-workspace /*.sublime-workspace
# Directories # Directories
.idea /.idea
.vscode /.vscode
### System Specific ### System Specific
# Files # Files

View File

@ -6,6 +6,9 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Set the base URL for all relative URLs within the document -->
<base href="https://example.com/">
<meta name="robots" content="index,follow"> <meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow"> <meta name="googlebot" content="index,follow">
@ -25,6 +28,7 @@
<!-- Privacy --> <!-- Privacy -->
<meta name="twitter:dnt" content="on"> <meta name="twitter:dnt" content="on">
<meta name="pinterest" content="nopin" description="No pinning allowed.">
<!-- analytics --> <!-- analytics -->
<!-- --> <!-- -->
@ -62,14 +66,21 @@
<link href="https://example.com/css/print.css" rel="stylesheet" media="print"> <link href="https://example.com/css/print.css" rel="stylesheet" media="print">
<!-- JS that must be executed before the document is loaded --> <!-- JS that must be executed before the document is loaded -->
<script>
if (localStorage.theme === "dark" || (!("theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
document.documentElement.classList.add("dark"); localStorage.theme = "dark";
} else {
document.documentElement.classList.remove("dark"); localStorage.theme = "light";
}
</script>
<script src="https://example.com/js/vendor/axios.min.js" defer></script> <script src="https://example.com/js/vendor/axios.min.js" defer></script>
<script src="https://example.com/js/vendor/vue.min.js" defer></script> <script src="https://example.com/js/vendor/vue.min.js" defer></script>
<script src="https://example.com/js/app.js" defer></script> <script src="https://example.com/js/app.js" defer></script>
<!-- -->
</head> </head>
<body class="font-sans antialiased"> <body class="font-sans antialiased">
<div id="app" class="min-h-screen bg-neutral-100"> <div id="app" class="min-h-screen bg-neutral-100">
<!-- --> <!-- content here -->
</div> </div>
</body> </body>
</html> </html>

View File

@ -180,9 +180,16 @@ protected function attrName(): Attribute
| |
*/ */
/**
* Something relationship.
*
* @since 1.0.0
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function something(): BelongsTo public function something(): BelongsTo
{ {
return $this->belongsTo( return \$this->belongsTo(
related: Something::class, related: Something::class,
foreignKey: 'something_id', foreignKey: 'something_id',
); );

View File

@ -1,34 +1,56 @@
<snippet> <snippet>
<content><![CDATA[ <content><![CDATA[
<script setup> <script setup>
import { useAttrs, reactive, ref, computed, watch, onBeforeMount, onMounted, provide, inject } from 'vue' import { useAttrs, useSlots, reactive, ref, computed, watch, onBeforeMount, onMounted, onBeforeUpdate, onBeforeUnmount, onUnmounted, provide, inject } from 'vue'
import { useForm, usePage } from '@inertiajs/inertia-vue3' import { Head, Link, useForm, usePage } from '@inertiajs/inertia-vue3'
import AppLayout from '@/Layouts/AppLayout.vue' import AppLayout from '@/Layouts/AppLayout.vue'
const emit = defineEmits([]) const emit = defineEmits([])
const attrs = useAttrs() const attrs = useAttrs()
const slots = useSlots()
const props = defineProps({}) const props = defineProps({})
// variables
// computed properties // computed properties
// watchers // watchers
// lifecycle hooks // lifecycle hooks
onBeforeMount(() => {
//
})
onMounted(() => {
//
})
onBeforeUpdate(() => {
//
})
onBeforeUnmount(() => {
//
})
onUnmounted(() => {
//
})
// methods // methods
</script> </script>
<template> <template>
<app-layout title="${1:TITLE}"> <AppLayout title="${1:TITLE}">
<template #header>${1:TITLE}</template> <template #header>${1:TITLE}</template>
<div class="col-span-6"> <div class="col-span-6">
<!-- content goes here --> <!-- content goes here -->
</div> </div>
</app-layout> </AppLayout>
</template> </template>
]]></content> ]]></content>