public function index() { $product = new Product(); $image = new Image(); $products = $product->all(); $tag = new Tag(); view('front.index', compact('products', 'image', 'tag')); }
public function index() { $product = new Product(); $image = new Image(); $tag = new Tag(); $products = $product->all(); $category = new Category(); $categories = $category->all(); // var_dump($_SESSION); view('front.index', compact('products', 'image', 'tag', 'categories')); }