/**
  * 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()]);
 }
Esempio n. 2
0
 public function __construct(array $attributes = array())
 {
     parent::__construct('Cadastro', 'Produto', $attributes);
 }
Esempio n. 3
0
 public function __construct(array $attributes = array())
 {
     parent::__construct('Site', 'Pagina', $attributes);
 }