This commit is contained in:
tanch0
2024-06-18 16:26:58 +05:45
parent 613dfd1834
commit 50b8768a34
68 changed files with 1540 additions and 657 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace App\Repositories;
use App\Models\Adcategories;
use App\Repositories\Interface\AdCategoriesInterface;
class AdCategoryRepository implements AdCategoriesInterface
{
public function create(array $adCategoriesDetail)
{
return Adcategories::create($adCategoriesDetail);
}
public function update($adCategoryId, array $newDetails)
{
return Adcategories::where('category_id', $adCategoryId)->update($newDetails);
}
}