Files
freeu-project/app/Services/Admin/PrivacyPolicyTermsConditionsService.php
Ritikesh yadav c661166e1d first commit
2024-03-28 14:52:40 +05:30

24 lines
628 B
PHP

<?php
namespace App\Services\Admin;
use App\Models\Content;
class PrivacyPolicyTermsConditionsService{
public function privacyPolicy(){
return Content::where('type', 'privacy-policy')->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());
}
}