20 lines
459 B
PHP
20 lines
459 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Adcategories;
|
|
use App\Repositories\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);
|
|
}
|
|
}
|