master_template/app/Repositories/AdCategoryRepository.php

20 lines
459 B
PHP
Raw Normal View History

2024-06-18 10:41:58 +00:00
<?php
namespace App\Repositories;
use App\Models\Adcategories;
2024-06-23 11:17:56 +00:00
use App\Repositories\AdCategoriesInterface;
2024-06-18 10:41:58 +00:00
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);
}
}