Skip to content

Commit 07cbc3d

Browse files
committed
replace ziggy with wayfinder
1 parent 9599041 commit 07cbc3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+6688
-454
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
55
APP_TIMEZONE=UTC
6-
APP_URL=http://localhost:8000
6+
APP_URL=http://localhost
77

88
APP_LOCALE=en
99
APP_FALLBACK_LOCALE=en

app/Http/Controllers/Auth/PasswordController.php

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function update(Request $request): RedirectResponse
2424
'password' => Hash::make($validated['password']),
2525
]);
2626

27+
flash('Your password has been updated.');
28+
2729
return back();
2830
}
2931
}

app/Http/Middleware/HandleInertiaRequests.php

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ public function share(Request $request): array
3535
'auth' => [
3636
'user' => $request->user() ? AuthenticatedUserResource::make($request->user()) : null,
3737
],
38-
'ziggy' => fn () => [
39-
'location' => $request->url(),
40-
'query' => $request->query(),
41-
],
4238
'flash' => fn () => [
4339
'message' => $request->session()->get('message'),
4440
'type' => $request->session()->get('type') ?? 'success',

biome.json

+83-81
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,88 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
6-
"vcs": {
7-
"enabled": false,
8-
"clientKind": "git",
9-
"useIgnoreFile": false
10-
},
11-
"files": {
12-
"ignoreUnknown": false,
13-
"ignore": ["vendor", "node_modules", "resources/js/ziggy.js"]
14-
},
15-
"linter": {
16-
"enabled": true,
17-
"rules": {
18-
"recommended": true,
19-
"style": {
20-
"noNonNullAssertion": "off",
21-
"noParameterAssign": "warn",
22-
"useImportType": "error"
23-
},
24-
"complexity": {
25-
"useArrowFunction": "error"
26-
},
27-
"a11y": {
28-
"noSvgWithoutTitle": "off",
29-
"useValidAnchor": "off",
30-
"useSemanticElements": "off"
31-
},
32-
"correctness": {
33-
"useHookAtTopLevel": "error",
34-
"noUnusedImports": "error",
35-
"useExhaustiveDependencies": "off",
36-
"noChildrenProp": "off"
37-
},
38-
"suspicious": {
39-
"noExplicitAny": "off",
40-
"noArrayIndexKey": "off",
41-
"noConsoleLog": "warn"
42-
},
43-
"nursery": {
44-
"useSortedClasses": {
45-
"level": "error",
46-
"fix": "safe",
47-
"options": {
48-
"attributes": ["classList"],
49-
"functions": [
50-
"cn",
51-
"twJoin",
52-
"tv",
53-
"composeRenderProps",
54-
"composeTailwindRenderProps"
55-
]
56-
}
57-
}
58-
}
59-
},
60-
"ignore": []
61-
},
62-
"formatter": {
63-
"enabled": true,
64-
"indentStyle": "space",
65-
"indentWidth": 2,
66-
"lineWidth": 100,
67-
"ignore": []
68-
},
69-
"javascript": {
70-
"formatter": {
71-
"quoteStyle": "double",
72-
"arrowParentheses": "always",
73-
"bracketSameLine": false,
74-
"bracketSpacing": true,
75-
"jsxQuoteStyle": "double",
76-
"quoteProperties": "asNeeded",
77-
"semicolons": "asNeeded",
78-
"trailingCommas": "all"
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"vcs": {
7+
"enabled": false,
8+
"clientKind": "git",
9+
"useIgnoreFile": false
10+
},
11+
"files": {
12+
"ignoreUnknown": false,
13+
"ignore": [
14+
"public",
15+
"bootstrap",
16+
"resources/js/routes",
17+
"resources/js/actions",
18+
"resources/js/wayfinder",
19+
"vendor",
20+
"node_modules"
21+
]
22+
},
23+
"linter": {
24+
"enabled": true,
25+
"rules": {
26+
"recommended": true,
27+
"style": {
28+
"noNonNullAssertion": "off",
29+
"noParameterAssign": "warn",
30+
"useImportType": "error"
31+
},
32+
"complexity": {
33+
"useArrowFunction": "error"
34+
},
35+
"a11y": {
36+
"noSvgWithoutTitle": "off",
37+
"useValidAnchor": "off",
38+
"useSemanticElements": "off"
39+
},
40+
"correctness": {
41+
"useHookAtTopLevel": "error",
42+
"noUnusedImports": "error",
43+
"useExhaustiveDependencies": "off",
44+
"noChildrenProp": "off"
45+
},
46+
"suspicious": {
47+
"noExplicitAny": "off",
48+
"noArrayIndexKey": "off",
49+
"noConsoleLog": "warn"
50+
},
51+
"nursery": {
52+
"useSortedClasses": {
53+
"level": "error",
54+
"fix": "safe",
55+
"options": {
56+
"attributes": ["classList"],
57+
"functions": ["cn", "twJoin", "tv", "composeRenderProps", "composeTailwindRenderProps"]
58+
}
7959
}
60+
}
8061
},
81-
"json": {
82-
"formatter": {
83-
"trailingCommas": "none"
84-
}
62+
"ignore": []
63+
},
64+
"formatter": {
65+
"enabled": true,
66+
"indentStyle": "space",
67+
"indentWidth": 2,
68+
"lineWidth": 100,
69+
"ignore": []
70+
},
71+
"javascript": {
72+
"formatter": {
73+
"quoteStyle": "double",
74+
"arrowParentheses": "always",
75+
"bracketSameLine": false,
76+
"bracketSpacing": true,
77+
"jsxQuoteStyle": "double",
78+
"quoteProperties": "asNeeded",
79+
"semicolons": "asNeeded",
80+
"trailingCommas": "all"
81+
}
82+
},
83+
"json": {
84+
"formatter": {
85+
"trailingCommas": "none"
8586
}
87+
}
8688
}

bun.lockb

-151 KB
Binary file not shown.

composer.json

+70-77
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,73 @@
11
{
2-
"name": "justd/laravel",
3-
"version": "1.4.21",
4-
"type": "project",
5-
"description": "The skeleton application for the Laravel framework.",
6-
"keywords": [
7-
"laravel",
8-
"framework"
9-
],
10-
"license": "MIT",
11-
"require": {
12-
"php": "^8.3",
13-
"inertiajs/inertia-laravel": "^2.0",
14-
"laravel/framework": "^12.0",
15-
"laravel/sanctum": "^4.0",
16-
"laravel/tinker": "^2.10",
17-
"tightenco/ziggy": "^2.0"
18-
},
19-
"require-dev": {
20-
"fakerphp/faker": "^1.23",
21-
"laravel/pint": "^1.13",
22-
"laravel/sail": "^1.26",
23-
"mockery/mockery": "^1.6",
24-
"nunomaduro/collision": "^8.0",
25-
"pestphp/pest": "^3.7"
26-
},
27-
"autoload": {
28-
"psr-4": {
29-
"App\\": "app/",
30-
"Database\\Factories\\": "database/factories/",
31-
"Database\\Seeders\\": "database/seeders/"
32-
},
33-
"files": [
34-
"app/helpers.php"
35-
]
36-
},
37-
"autoload-dev": {
38-
"psr-4": {
39-
"Tests\\": "tests/"
40-
}
41-
},
42-
"scripts": {
43-
"post-autoload-dump": [
44-
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
45-
"@php artisan package:discover --ansi"
46-
],
47-
"post-update-cmd": [
48-
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
49-
],
50-
"post-root-package-install": [
51-
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
52-
],
53-
"post-create-project-cmd": [
54-
"@php artisan key:generate --ansi",
55-
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
56-
"@php artisan migrate --graceful --ansi",
57-
"npm i"
58-
],
59-
"dev": [
60-
"Composer\\Config::disableProcessTimeout",
61-
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
62-
]
2+
"name": "justd/laravel",
3+
"version": "1.5.0",
4+
"type": "project",
5+
"description": "The skeleton application for the Laravel framework.",
6+
"keywords": ["laravel", "framework"],
7+
"license": "MIT",
8+
"require": {
9+
"php": "^8.3",
10+
"inertiajs/inertia-laravel": "^2.0",
11+
"laravel/framework": "^12.0",
12+
"laravel/sanctum": "^4.0",
13+
"laravel/tinker": "^2.10",
14+
"laravel/wayfinder": "^0.1.3",
15+
"tightenco/ziggy": "^2.0"
16+
},
17+
"require-dev": {
18+
"fakerphp/faker": "^1.23",
19+
"laravel/pint": "^1.13",
20+
"laravel/sail": "^1.26",
21+
"mockery/mockery": "^1.6",
22+
"nunomaduro/collision": "^8.0",
23+
"pestphp/pest": "^3.7"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"App\\": "app/",
28+
"Database\\Factories\\": "database/factories/",
29+
"Database\\Seeders\\": "database/seeders/"
6330
},
64-
"extra": {
65-
"laravel": {
66-
"dont-discover": []
67-
}
68-
},
69-
"config": {
70-
"optimize-autoloader": true,
71-
"preferred-install": "dist",
72-
"sort-packages": true,
73-
"allow-plugins": {
74-
"pestphp/pest-plugin": true,
75-
"php-http/discovery": true
76-
}
77-
},
78-
"minimum-stability": "stable",
79-
"prefer-stable": true
31+
"files": ["app/helpers.php"]
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"Tests\\": "tests/"
36+
}
37+
},
38+
"scripts": {
39+
"post-autoload-dump": [
40+
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
41+
"@php artisan package:discover --ansi"
42+
],
43+
"post-update-cmd": ["@php artisan vendor:publish --tag=laravel-assets --ansi --force"],
44+
"post-root-package-install": [
45+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
46+
],
47+
"post-create-project-cmd": [
48+
"@php artisan key:generate --ansi",
49+
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
50+
"@php artisan migrate --graceful --ansi"
51+
],
52+
"dev": [
53+
"Composer\\Config::disableProcessTimeout",
54+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
55+
]
56+
},
57+
"extra": {
58+
"laravel": {
59+
"dont-discover": []
60+
}
61+
},
62+
"config": {
63+
"optimize-autoloader": true,
64+
"preferred-install": "dist",
65+
"sort-packages": true,
66+
"allow-plugins": {
67+
"pestphp/pest-plugin": true,
68+
"php-http/discovery": true
69+
}
70+
},
71+
"minimum-stability": "stable",
72+
"prefer-stable": true
8073
}

0 commit comments

Comments
 (0)