slider adminka
This commit is contained in:
parent
b5ffeeae55
commit
e9322b8b51
|
|
@ -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());
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue