Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     $tags = Tag::search($request->name)->desc()->paginado();
     return view('admin.tags.index')->with('tags', $tags);
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     // llamamos a todos los tags y paginamos a 5 a la vez
     $tags = Tag::search($request->name)->orderBy('id', 'DESC')->paginate(5);
     return view('admin.tags.index')->with('tags', $tags);
 }
Exemplo n.º 3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     $tags = Tag::search($request->name)->orderBy('id', 'DESC')->paginate(5);
     return view('admin.tags.index')->with('tags', $tags);
 }
Exemplo n.º 4
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $requests)
 {
     $tags = Tag::search($requests->name)->orderBy('id', 'DESC')->paginate(8);
     return view('admin.tags.index', compact('tags'));
 }