This commit is contained in:
2024-11-27 23:23:12 +05:00
parent c362c3aacd
commit aa6e39aef2

View File

@@ -9,7 +9,6 @@ class AlertController extends Controller
*/ */
public function index() public function index()
{ {
return auth()->id();
$alerstQuery = auth()->user()->alerts()->whereNull('seen_at'); $alerstQuery = auth()->user()->alerts()->whereNull('seen_at');
$alerts = $alerstQuery->get(); $alerts = $alerstQuery->get();