slider adminka

This commit is contained in:
merdan 2023-01-10 15:46:28 +05:00
parent b5ffeeae55
commit e9322b8b51
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ use Illuminate\Http\Request;
use TPS\API\Http\Resources\Core\Slider;
use TPS\Shop\Repositories\SliderRepository;
use Webkul\RestApi\Http\Controllers\V1\Shop\ShopController;
use Carbon\Carbon;
class Sliders extends ShopController
{
protected $requestException = ['page', 'limit', 'pagination', 'sort', 'order', 'token','currency'];
@ -36,7 +36,7 @@ class Sliders extends ShopController
return $query->where(function ($q){
$q->whereNull('expired_at')
->orWhereDate('expired_at','<=',\Carbon::today());
->orWhereDate('expired_at','<=',Carbon::today());
});
});