changes
This commit is contained in:
19
app/Repositories/AdCategoryRepository.php
Normal file
19
app/Repositories/AdCategoryRepository.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user