notifications() ->where('data->business_id', $business)->get(); } public function markAsRead($business, $notification) { return Auth::user()->unreadNotifications() ->where('business_id', $business) ->findOrFail($notification) ->markAsRead(); } }