public function product()
 {
     // var_dump(\Request::is('produ*'));
     // exit;
     //$data['products'] = DB::table('Products')->paginate(1);
     $data['products'] = Products::paginate(3);
     return \View::make('product', $data);
 }
Exemplo n.º 2
0
 public function index()
 {
     $products = Products::paginate(15);
     return view('dashboard.products.index', compact('products'));
 }