Skip to content

Commit c87706e

Browse files
committed
Merge branch 'main' into workos
2 parents 9f166ff + bc5d88a commit c87706e

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="[email protected]"
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>

0 commit comments

Comments
 (0)