41 lines
797 B
PHP
41 lines
797 B
PHP
<?php
|
|
|
|
namespace Sarga\API\Http\Controllers;
|
|
|
|
use Sarga\API\Http\Resources\Core\Slider;
|
|
use Webkul\Core\Repositories\SliderRepository;
|
|
use Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController;
|
|
|
|
class Banners extends ResourceController
|
|
{
|
|
protected $requestException = ['page', 'limit', 'pagination', 'sort', 'order', 'token','locale'];
|
|
/**
|
|
* Resource class name.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function resource()
|
|
{
|
|
return Slider::class;
|
|
}
|
|
|
|
/**
|
|
* Repository class name.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function repository()
|
|
{
|
|
return SliderRepository::class;
|
|
}
|
|
|
|
/**
|
|
* Is resource authorized.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isAuthorized()
|
|
{
|
|
return false;
|
|
}
|
|
} |