24 lines
628 B
PHP
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());
|
|
}
|
|
} |