Closed PepijnVDK1 closed 1 year ago
I was wondering how to pass data to a specific page layout.
Lets say i have a ProductResource and a layout Products. I want to be able to collect all products and pass it to the product layout.
Like this: return view('products', ['products' => $products]);
I don't know if this is already possible.
create a block "products" and pass the data there instead.
I was wondering how to pass data to a specific page layout.
Lets say i have a ProductResource and a layout Products. I want to be able to collect all products and pass it to the product layout.
Like this: return view('products', ['products' => $products]);
I don't know if this is already possible.