public function home() { $products = Product::all(); $categories = Categorie::all(); //dump($products); return view('accueil', ["produit" => $products, "category" => $categories]); }
public function getAll() { return Categorie::all(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { self::$data['categories'] = Categorie::all(); return view('cms.categories', self::$data); }