/** * Display a listing of the resource. * * @return Response */ public function index() { $matchs = Encuentro::orderBy('created_at', 'DESC')->whereBetween('created_at', [Carbon::today(), Carbon::today()->addDay(1)])->get(); $blogs = Blog::orderBy('created_at', 'DESC')->paginate(2); return view('Site.index', compact('blogs', 'matchs')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $matchs = Encuentro::orderBy('category', 'DESC')->paginate(10); return view('admin.match.index', compact('matchs')); }