Skip to content

Commit 89f0735

Browse files
committed
Merge branch 'main' into preview
2 parents 62ce504 + bc5d88a commit 89f0735

18 files changed

+52
-43
lines changed

.env.example

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_TIMEZONE=UTC
65
APP_URL=http://localhost
76

87
APP_LOCALE=en
@@ -39,7 +38,7 @@ FILESYSTEM_DISK=local
3938
QUEUE_CONNECTION=database
4039

4140
CACHE_STORE=database
42-
CACHE_PREFIX=
41+
# CACHE_PREFIX=
4342

4443
MEMCACHED_HOST=127.0.0.1
4544

@@ -49,11 +48,11 @@ REDIS_PASSWORD=null
4948
REDIS_PORT=6379
5049

5150
MAIL_MAILER=log
51+
MAIL_SCHEME=null
5252
MAIL_HOST=127.0.0.1
5353
MAIL_PORT=2525
5454
MAIL_USERNAME=null
5555
MAIL_PASSWORD=null
56-
MAIL_ENCRYPTION=null
5756
MAIL_FROM_ADDRESS="hello@example.com"
5857
MAIL_FROM_NAME="${APP_NAME}"
5958

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@
66
/storage/*.key
77
/storage/pail
88
/vendor
9-
.DS_Store
109
.env
1110
.env.backup
1211
.env.production
1312
.phpactor.json
1413
.phpunit.result.cache
15-
.windsurfrules
1614
Homestead.json
1715
Homestead.yaml
18-
auth.json
1916
npm-debug.log
2017
yarn-error.log
18+
/auth.json
2119
/.fleet
2220
/.idea
2321
/.nova

artisan

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Illuminate\Foundation\Application;
45
use Symfony\Component\Console\Input\ArgvInput;
56

67
define('LARAVEL_START', microtime(true));
@@ -9,7 +10,9 @@ define('LARAVEL_START', microtime(true));
910
require __DIR__.'/vendor/autoload.php';
1011

1112
// Bootstrap Laravel and handle the command...
12-
$status = (require_once __DIR__.'/bootstrap/app.php')
13-
->handleCommand(new ArgvInput);
13+
/** @var Application $app */
14+
$app = require_once __DIR__.'/bootstrap/app.php';
15+
16+
$status = $app->handleCommand(new ArgvInput);
1417

1518
exit($status);

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
|
6666
*/
6767

68-
'timezone' => env('APP_TIMEZONE', 'UTC'),
68+
'timezone' => 'UTC',
6969

7070
/*
7171
|--------------------------------------------------------------------------

config/filesystems.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'root' => storage_path('app/private'),
3636
'serve' => true,
3737
'throw' => false,
38+
'report' => false,
3839
],
3940

4041
'public' => [
@@ -43,6 +44,7 @@
4344
'url' => env('APP_URL').'/storage',
4445
'visibility' => 'public',
4546
'throw' => false,
47+
'report' => false,
4648
],
4749

4850
's3' => [
@@ -55,6 +57,7 @@
5557
'endpoint' => env('AWS_ENDPOINT'),
5658
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
5759
'throw' => false,
60+
'report' => false,
5861
],
5962

6063
],

config/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939

4040
'smtp' => [
4141
'transport' => 'smtp',
42+
'scheme' => env('MAIL_SCHEME'),
4243
'url' => env('MAIL_URL'),
4344
'host' => env('MAIL_HOST', '127.0.0.1'),
4445
'port' => env('MAIL_PORT', 2525),
45-
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
4646
'username' => env('MAIL_USERNAME'),
4747
'password' => env('MAIL_PASSWORD'),
4848
'timeout' => null,

config/session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
|
3333
*/
3434

35-
'lifetime' => env('SESSION_LIFETIME', 120),
35+
'lifetime' => (int) env('SESSION_LIFETIME', 120),
3636

3737
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
3838

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
RewriteCond %{HTTP:Authorization} .
1010
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
1111

12+
# Handle X-XSRF-Token Header
13+
RewriteCond %{HTTP:x-xsrf-token} .
14+
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
15+
1216
# Redirect Trailing Slashes If Not A Folder...
1317
RewriteCond %{REQUEST_FILENAME} !-d
1418
RewriteCond %{REQUEST_URI} (.+)/$

public/index.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Illuminate\Foundation\Application;
34
use Illuminate\Http\Request;
45

56
define('LARAVEL_START', microtime(true));
@@ -13,5 +14,7 @@
1314
require __DIR__.'/../vendor/autoload.php';
1415

1516
// Bootstrap Laravel and handle the request...
16-
(require_once __DIR__.'/../bootstrap/app.php')
17-
->handleRequest(Request::capture());
17+
/** @var Application $app */
18+
$app = require_once __DIR__.'/../bootstrap/app.php';
19+
20+
$app->handleRequest(Request::capture());

resources/js/components/AppHeader.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
NavigationMenuList,
1212
navigationMenuTriggerStyle,
1313
} from '@/components/ui/navigation-menu';
14-
import { Sheet, SheetContent, SheetHeader, SheetTrigger } from '@/components/ui/sheet';
14+
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet';
1515
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
1616
import UserMenuContent from '@/components/UserMenuContent.vue';
1717
import { getInitials } from '@/composables/useInitials';
@@ -40,20 +40,20 @@ const activeItemStyles = computed(() => (url: string) => (isCurrentRoute(url) ?
4040
const mainNavItems: NavItem[] = [
4141
{
4242
title: 'Dashboard',
43-
url: '/dashboard',
43+
href: '/dashboard',
4444
icon: LayoutGrid,
4545
},
4646
];
4747
4848
const rightNavItems: NavItem[] = [
4949
{
5050
title: 'Repository',
51-
url: 'https://github.com/laravel/vue-starter-kit',
51+
href: 'https://github.com/laravel/vue-starter-kit',
5252
icon: Folder,
5353
},
5454
{
5555
title: 'Documentation',
56-
url: 'https://laravel.com/docs/starter-kits',
56+
href: 'https://laravel.com/docs/starter-kits',
5757
icon: BookOpen,
5858
},
5959
];
@@ -76,14 +76,14 @@ const rightNavItems: NavItem[] = [
7676
<SheetHeader class="flex justify-start text-left">
7777
<AppLogoIcon class="size-6 fill-current text-black dark:text-white" />
7878
</SheetHeader>
79-
<div className="flex flex-col justify-between h-full space-y-4 py-6 flex-1">
79+
<div class="flex flex-col justify-between h-full space-y-4 py-6 flex-1">
8080
<nav class="-mx-3 space-y-1">
8181
<Link
8282
v-for="item in mainNavItems"
8383
:key="item.title"
84-
:href="item.url"
84+
:href="item.href"
8585
class="flex items-center gap-x-3 rounded-lg px-3 py-2 text-sm font-medium hover:bg-accent"
86-
:class="activeItemStyles(item.url)"
86+
:class="activeItemStyles(item.href)"
8787
>
8888
<component v-if="item.icon" :is="item.icon" class="h-5 w-5" />
8989
{{ item.title }}
@@ -93,7 +93,7 @@ const rightNavItems: NavItem[] = [
9393
<a
9494
v-for="item in rightNavItems"
9595
:key="item.title"
96-
:href="item.url"
96+
:href="item.href"
9797
target="_blank"
9898
rel="noopener noreferrer"
9999
class="flex items-center space-x-2 text-sm font-medium"
@@ -116,9 +116,9 @@ const rightNavItems: NavItem[] = [
116116
<NavigationMenu class="ml-10 flex h-full items-stretch">
117117
<NavigationMenuList class="flex h-full items-stretch space-x-2">
118118
<NavigationMenuItem v-for="(item, index) in mainNavItems" :key="index" class="relative flex h-full items-center">
119-
<Link :href="item.url">
119+
<Link :href="item.href">
120120
<NavigationMenuLink
121-
:class="[navigationMenuTriggerStyle(), activeItemStyles(item.url), 'h-9 cursor-pointer px-3']"
121+
:class="[navigationMenuTriggerStyle(), activeItemStyles(item.href), 'h-9 cursor-pointer px-3']"
122122
>
123123
<component v-if="item.icon" :is="item.icon" class="mr-2 h-4 w-4" />
124124
{{ item.title }}
@@ -142,7 +142,7 @@ const rightNavItems: NavItem[] = [
142142
<Tooltip>
143143
<TooltipTrigger>
144144
<Button variant="ghost" size="icon" as-child class="group h-9 w-9 cursor-pointer">
145-
<a :href="item.url" target="_blank" rel="noopener noreferrer">
145+
<a :href="item.href" target="_blank" rel="noopener noreferrer">
146146
<span class="sr-only">{{ item.title }}</span>
147147
<component :is="item.icon" class="size-5 opacity-80 group-hover:opacity-100" />
148148
</a>
@@ -182,7 +182,7 @@ const rightNavItems: NavItem[] = [
182182

183183
<div v-if="props.breadcrumbs.length > 1" class="flex w-full border-b border-sidebar-border/70">
184184
<div class="mx-auto flex h-12 w-full items-center justify-start px-4 text-neutral-500 md:max-w-7xl">
185-
<Breadcrumbs :breadcrumbs="props.breadcrumbs" />
185+
<Breadcrumbs :breadcrumbs="breadcrumbs" />
186186
</div>
187187
</div>
188188
</div>

resources/js/components/AppSidebar.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,27 @@ import NavMain from '@/components/NavMain.vue';
44
import NavUser from '@/components/NavUser.vue';
55
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
66
import { type NavItem } from '@/types';
7+
import { Link } from '@inertiajs/vue3';
78
import { BookOpen, Folder, LayoutGrid } from 'lucide-vue-next';
89
import AppLogo from './AppLogo.vue';
910
1011
const mainNavItems: NavItem[] = [
1112
{
1213
title: 'Dashboard',
13-
url: '/dashboard',
14+
href: '/dashboard',
1415
icon: LayoutGrid,
1516
},
1617
];
1718
1819
const footerNavItems: NavItem[] = [
1920
{
2021
title: 'Github Repo',
21-
url: 'https://github.com/laravel/vue-starter-kit',
22+
href: 'https://github.com/laravel/vue-starter-kit',
2223
icon: Folder,
2324
},
2425
{
2526
title: 'Documentation',
26-
url: 'https://laravel.com/docs/starter-kits',
27+
href: 'https://laravel.com/docs/starter-kits',
2728
icon: BookOpen,
2829
},
2930
];
@@ -35,9 +36,9 @@ const footerNavItems: NavItem[] = [
3536
<SidebarMenu>
3637
<SidebarMenuItem>
3738
<SidebarMenuButton size="lg" as-child>
38-
<a :href="route('dashboard')">
39+
<Link :href="route('dashboard')">
3940
<AppLogo />
40-
</a>
41+
</Link>
4142
</SidebarMenuButton>
4243
</SidebarMenuItem>
4344
</SidebarMenu>

resources/js/components/AppearanceTabs.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ interface Props {
66
class?: string;
77
}
88
9-
const props = withDefaults(defineProps<Props>(), {
10-
class: '',
11-
});
9+
const { class: containerClass = '' } = defineProps<Props>();
1210
1311
const { appearance, updateAppearance } = useAppearance();
1412
@@ -20,7 +18,7 @@ const tabs = [
2018
</script>
2119

2220
<template>
23-
<div :class="['inline-flex gap-1 rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800', props.class]">
21+
<div :class="['inline-flex gap-1 rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800', containerClass]">
2422
<button
2523
v-for="{ value, Icon, label } in tabs"
2624
:key="value"

resources/js/components/Icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ const icon = computed(() => {
2626
</script>
2727

2828
<template>
29-
<component :is="icon" :class="className" :size="props.size" :stroke-width="props.strokeWidth" :color="props.color" />
29+
<component :is="icon" :class="className" :size="size" :stroke-width="strokeWidth" :color="color" />
3030
</template>

resources/js/components/NavFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defineProps<Props>();
1616
<SidebarMenu>
1717
<SidebarMenuItem v-for="item in items" :key="item.title">
1818
<SidebarMenuButton class="text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100" as-child>
19-
<a :href="item.url" target="_blank" rel="noopener noreferrer">
19+
<a :href="item.href" target="_blank" rel="noopener noreferrer">
2020
<component :is="item.icon" />
2121
<span>{{ item.title }}</span>
2222
</a>

resources/js/layouts/AppLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ interface Props {
66
breadcrumbs?: BreadcrumbItemType[];
77
}
88
9-
const props = withDefaults(defineProps<Props>(), {
9+
withDefaults(defineProps<Props>(), {
1010
breadcrumbs: () => [],
1111
});
1212
</script>
1313

1414
<template>
15-
<AppLayout :breadcrumbs="props.breadcrumbs">
15+
<AppLayout :breadcrumbs="breadcrumbs">
1616
<slot />
1717
</AppLayout>
1818
</template>

resources/js/layouts/app/AppHeaderLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ interface Props {
88
breadcrumbs?: BreadcrumbItemType[];
99
}
1010
11-
const props = withDefaults(defineProps<Props>(), {
11+
withDefaults(defineProps<Props>(), {
1212
breadcrumbs: () => [],
1313
});
1414
</script>
1515

1616
<template>
1717
<AppShell class="flex-col">
18-
<AppHeader :breadcrumbs="props.breadcrumbs" />
18+
<AppHeader :breadcrumbs="breadcrumbs" />
1919
<AppContent>
2020
<slot />
2121
</AppContent>

resources/js/layouts/app/AppSidebarLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
breadcrumbs?: BreadcrumbItemType[];
1010
}
1111
12-
const props = withDefaults(defineProps<Props>(), {
12+
withDefaults(defineProps<Props>(), {
1313
breadcrumbs: () => [],
1414
});
1515
</script>
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
1818
<AppShell variant="sidebar">
1919
<AppSidebar />
2020
<AppContent variant="sidebar">
21-
<AppSidebarHeader :breadcrumbs="props.breadcrumbs" />
21+
<AppSidebarHeader :breadcrumbs="breadcrumbs" />
2222
<slot />
2323
</AppContent>
2424
</AppShell>

routes/console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
Artisan::command('inspire', function () {
77
$this->comment(Inspiring::quote());
8-
})->purpose('Display an inspiring quote')->hourly();
8+
})->purpose('Display an inspiring quote');

0 commit comments

Comments
 (0)