Update dan bUgs FIx
This commit is contained in:
@@ -86,7 +86,12 @@ class NotifikasiController extends Controller
|
||||
|
||||
public function getNotif(Request $request)
|
||||
{
|
||||
$notif = Notifikasi::where(["userid"=>Auth::user()->id,"is_read"=>0])->get();
|
||||
$notif = Notifikasi::where(["userid"=>Auth::user()->id,"is_read"=>0]);
|
||||
$notif = [
|
||||
"jml"=>$notif->count(),
|
||||
"data"=>$notif->orderBy("created_at","desc")->skip(0)->take(5)->get()
|
||||
];
|
||||
|
||||
return response()->json($notif);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user