This commit is contained in:
tanch0
2024-06-23 17:02:56 +05:45
parent 25760ad989
commit f85671cd4c
93 changed files with 2886 additions and 1579 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace App\Repositories;
use App\Models\Comments;
use App\Repositories\CommentsInterface;
class CommentsRepository implements CommentsInterface
{
public function create(array $Details)
{
// dd($Details);
return Comments::create($Details);
}
public function update($commentId, array $Details)
{
return Comments::where('id', $commentId)->update($Details);
}
public function delete($commentId)
{
return Comments::where('id', $commentId)->delete();
}
}