コード例 #1
0
 /**
  * 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()]);
 }
コード例 #2
0
ファイル: Produto.php プロジェクト: wilcorrea/awesovel
 public function __construct(array $attributes = array())
 {
     parent::__construct('Cadastro', 'Produto', $attributes);
 }
コード例 #3
0
ファイル: Pagina.php プロジェクト: wilcorrea/awesovel
 public function __construct(array $attributes = array())
 {
     parent::__construct('Site', 'Pagina', $attributes);
 }