First Commit

This commit is contained in:
marco
2026-09-01 07:49:48 -03:00
commit 28b1044038
399 changed files with 41659 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Http\View\Composers;
use App\Models\UserNotification;
use Illuminate\View\View;
use Illuminate\Support\Facades\Auth;
class NavigationComposer
{
public function compose(View $view): void
{
if (Auth::check()) {
$view->with('unreadNotifications', UserNotification::where('user_id', Auth::id())
->where('is_read', false)
->orderByDesc('created_at')
->get());
} else {
$view->with('unreadNotifications', collect());
}
}
}