bobbybouwmann6 years ago Best Answer Level 88ReplyReport SpamYou can do something like this $products = Product::select([ '*', DB::raw('(CASE WHEN datediff(expire_date,CURDATE()) > 0 then datediff(expire_date,CURDATE()) ELSE 'Expired' END) as remaining')) ])->get(); This should do the trick for you. Like Reply