/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $total = isset($this->parameters['total']) ? $this->parameters['total'] : config('awesovel')['total']; $this->data['collection'] = $this->api('HEAD', 'paginate', $total); return $this->view($this->operation->layout, ['items' => $this->model->getItems()]); }
public function __construct(array $attributes = array()) { parent::__construct('Cadastro', 'Produto', $attributes); }
public function __construct(array $attributes = array()) { parent::__construct('Site', 'Pagina', $attributes); }