/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $products = Products::latest('created_at')->take(3)->get(); return view('pages.home', compact('products')); }