/** * 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); }
/** * 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); }
/** * 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); }
/** * 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')); }