/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     $products = Product::Search($request->name)->paginate(10);
     return view('product.index', compact('products'));
 }