Skip to content

Commit 785571a

Browse files
committed
Replace Ziggy with Wayfinder
1 parent c9e6a6c commit 785571a

28 files changed

+8582
-83
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Install Node Dependencies
3535
run: npm ci
3636

37-
- name: Build Assets
38-
run: npm run build
39-
4037
- name: Install Dependencies
4138
run: composer install --no-interaction --prefer-dist --optimize-autoloader
4239

40+
- name: Build Assets
41+
run: npm run build
42+
4343
- name: Copy Environment File
4444
run: cp .env.example .env
4545

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
/public/build
55
/public/hot
66
/public/storage
7+
/resources/js/actions
8+
/resources/js/routes
9+
/resources/js/wayfinder
710
/storage/*.key
811
/storage/pail
912
/vendor

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
resources/js/components/ui/*
2-
resources/js/ziggy.js
32
resources/views/mail/*

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Foundation\Inspiring;
66
use Illuminate\Http\Request;
77
use Inertia\Middleware;
8-
use Tighten\Ziggy\Ziggy;
98

109
class HandleInertiaRequests extends Middleware
1110
{
@@ -46,10 +45,6 @@ public function share(Request $request): array
4645
'auth' => [
4746
'user' => $request->user(),
4847
],
49-
'ziggy' => fn (): array => [
50-
...(new Ziggy)->toArray(),
51-
'location' => $request->url(),
52-
],
5348
'sidebarOpen' => ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true',
5449
];
5550
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"inertiajs/inertia-laravel": "^2.0",
1414
"laravel/framework": "^12.0",
1515
"laravel/tinker": "^2.10.1",
16-
"tightenco/ziggy": "^2.4"
16+
"laravel/wayfinder": "^0.1.9"
1717
},
1818
"require-dev": {
1919
"fakerphp/faker": "^1.23",

0 commit comments

Comments
 (0)