lms/app/Services/Course/CourseFaqService.php
2025-12-15 12:26:23 +01:00

24 lines
409 B
PHP

<?php
namespace App\Services\Course;
use App\Models\Course\CourseFaq;
class CourseFaqService
{
public function createFaq(array $data)
{
return CourseFaq::create($data);
}
public function updateFaq(array $data, string $id)
{
return CourseFaq::find($id)->update($data);
}
public function deleteFaq(string $id): bool
{
return CourseFaq::find($id)->delete();
}
}