You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
427 B
PHTML

<?php
namespace App\Http\Controllers;
use App\Models\Notification;
class NotificationController extends Controller
{
public function index()
{
$query = Notification::where('entity_type', \App\Models\User::class)
->orderBy('is_read', 'asc')
->orderBy('created_at', 'desc');
return inertia('Notification/Index', [
'query' => $query->paginate(),
]);
}
}