Beispiel #1
0
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $id = $this->input->get('id');
     $this->data['category'] = Category::find($id);
     if (!$this->data['category']) {
         return $this->redirect($this->plugin->categories_url());
     }
     return parent::onGet($input);
 }
Beispiel #2
0
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $this->data['users'] = User::all();
     return parent::onGet($input);
 }
Beispiel #3
0
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $this->data['users'] = User::orderBy('lastname')->orderBy('firstname')->paginate(25, ['*'], 'subpage');
     return parent::onGet($input);
 }
Beispiel #4
0
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $this->data['categories'] = Category::orderBy('name')->paginate(25, ['*'], 'subpage');
     return parent::onGet($input);
 }
Beispiel #5
0
 protected function onGet(\Illuminate\Http\Request $input)
 {
     $this->data['categories'] = Category::all();
     return parent::onGet($input);
 }