Skip to content

Commit 5fd4bd7

Browse files
feat:[lar-139] transfert notification page to livewire page
1 parent feae698 commit 5fd4bd7

File tree

5 files changed

+229
-230
lines changed

5 files changed

+229
-230
lines changed

app/Livewire/NotificationsPage.php renamed to app/Livewire/Pages/Notifications.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace App\Livewire;
5+
namespace App\Livewire\Pages;
66

77
use App\Policies\NotificationPolicy;
88
use Carbon\Carbon;
@@ -13,7 +13,7 @@
1313
use Illuminate\Support\Facades\Auth;
1414
use Livewire\Component;
1515

16-
final class NotificationsPage extends Component
16+
final class Notifications extends Component
1717
{
1818
use AuthorizesRequests;
1919

@@ -48,7 +48,7 @@ public function markAsRead(string $notificationId): void
4848

4949
public function render(): View
5050
{
51-
return view('livewire.notifications-page', [
51+
return view('livewire.pages.notifications', [
5252
// @phpstan-ignore-next-line
5353
'notifications' => Auth::user()
5454
->unreadNotifications()

resources/views/livewire/notifications-page.blade.php

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

0 commit comments

Comments
 (0)