Skip to content

Commit 9a68000

Browse files
calebporzioganyicz
andauthored
Support Livewire 4 (#207)
* Move layouts from resources/views/components/layouts to resources/views/layouts to use new layouts namespace * Revert "Move layouts from resources/views/components/layouts to resources/views/layouts to use new layouts namespace" This reverts commit 5c107ef. * Support Livewire 4 * Update structure * Add emojis * wip * wip * wip * remove beta from composer.json version requirement * correct closing tags --------- Co-authored-by: Filip Ganyicz <ganyicz.filip@gmail.com>
1 parent 36b01d6 commit 9a68000

33 files changed

+63
-94
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ Our Laravel + [Livewire](https://livewire.laravel.com) starter kit provides a ro
66

77
Livewire is a powerful way of building dynamic, reactive, frontend UIs using just PHP. It's a great fit for teams that primarily use Blade templates and are looking for a simpler alternative to JavaScript-driven SPA frameworks like React and Vue.
88

9-
This Livewire starter kit utilizes Livewire 3, Laravel Volt (optionally), TypeScript, Tailwind, and the [Flux UI](https://fluxui.dev) component library.
9+
This Livewire starter kit utilizes Livewire 4, TypeScript, Tailwind, and the [Flux UI](https://fluxui.dev) component library.
1010

1111
If you are looking for the alternate configurations of this starter kit, they can be found in the following branches:
1212

13-
- [components](https://github.com/laravel/livewire-starter-kit/tree/components) - if Volt is not selected
1413
- [workos](https://github.com/laravel/livewire-starter-kit/tree/workos) - if WorkOS is selected for authentication
1514

1615
## Official Documentation

app/Providers/FortifyServiceProvider.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ private function configureActions(): void
4545
*/
4646
private function configureViews(): void
4747
{
48-
Fortify::loginView(fn () => view('livewire.auth.login'));
49-
Fortify::verifyEmailView(fn () => view('livewire.auth.verify-email'));
50-
Fortify::twoFactorChallengeView(fn () => view('livewire.auth.two-factor-challenge'));
51-
Fortify::confirmPasswordView(fn () => view('livewire.auth.confirm-password'));
52-
Fortify::registerView(fn () => view('livewire.auth.register'));
53-
Fortify::resetPasswordView(fn () => view('livewire.auth.reset-password'));
54-
Fortify::requestPasswordResetLinkView(fn () => view('livewire.auth.forgot-password'));
48+
Fortify::loginView(fn () => view('pages::auth.login'));
49+
Fortify::verifyEmailView(fn () => view('pages::auth.verify-email'));
50+
Fortify::twoFactorChallengeView(fn () => view('pages::auth.two-factor-challenge'));
51+
Fortify::confirmPasswordView(fn () => view('pages::auth.confirm-password'));
52+
Fortify::registerView(fn () => view('pages::auth.register'));
53+
Fortify::resetPasswordView(fn () => view('pages::auth.reset-password'));
54+
Fortify::requestPasswordResetLinkView(fn () => view('pages::auth.forgot-password'));
5555
}
5656

5757
/**

app/Providers/VoltServiceProvider.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

bootstrap/providers.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
return [
44
App\Providers\AppServiceProvider::class,
55
App\Providers\FortifyServiceProvider::class,
6-
App\Providers\VoltServiceProvider::class,
76
];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"laravel/framework": "^12.0",
1515
"laravel/tinker": "^2.10.1",
1616
"livewire/flux": "^2.9.0",
17-
"livewire/volt": "^1.7.0"
17+
"livewire/livewire": "^4.0"
1818
},
1919
"require-dev": {
2020
"fakerphp/faker": "^1.23",

resources/views/components/layouts/app.blade.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

resources/views/components/layouts/auth.blade.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

resources/views/dashboard.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-layouts.app :title="__('Dashboard')">
1+
<x-layouts::app :title="__('Dashboard')">
22
<div class="flex h-full w-full flex-1 flex-col gap-4 rounded-xl">
33
<div class="grid auto-rows-min gap-4 md:grid-cols-3">
44
<div class="relative aspect-video overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-700">
@@ -15,4 +15,4 @@
1515
<x-placeholder-pattern class="absolute inset-0 size-full stroke-gray-900/20 dark:stroke-neutral-100/20" />
1616
</div>
1717
</div>
18-
</x-layouts.app>
18+
</x-layouts::app>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<x-layouts::app.sidebar :title="$title ?? null">
2+
<flux:main>
3+
{{ $slot }}
4+
</flux:main>
5+
</x-layouts::app.sidebar>
File renamed without changes.

0 commit comments

Comments
 (0)