Files
freeu-project/app/Services/Admin/PrivacyPolicyTermsConditionsService.php

24 lines
628 B
PHP
Raw Normal View History

2024-03-28 14:52:40 +05:30
<?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());
}
}