@php use App\Models\CartItem; if(auth()->check()){ $cartItems = CartItem::where(['user_id' => auth()->user()->id,'status' => 1])->get(); } @endphp