Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('faq.index', ['faqs' => Faq::paginate(10)]);
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Model $objects)
 {
     $objects_for_filter = Model::all();
     return view('admin.faq.list', ['objects' => $objects->paginate(10), 'objects_for_filter' => $objects_for_filter]);
 }
Exemplo n.º 3
0
 public function index(Model $object)
 {
     return view('faq.faqs', ['categories' => $this->categories, 'objects' => $object->paginate(6), 'title' => LANG . '_title', 'text' => LANG . '_text']);
 }