firstorFail(); } public function termsCondition(){ return Content::where('type', 'terms-and-condition')->firstorFail(); } public function updatePrivacy($request){ return Content::where('type', 'privacy-policy')->update($request->validated()); } public function updateTerms($request){ return Content::where('type', 'terms-and-condition')->update($request->validated()); } }