Z3d0X / filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps
https://filamentphp.com/plugins/fabricator
MIT License
270 stars 52 forks source link

Passing data to a specific layout #30

Closed PepijnVDK1 closed 1 year ago

PepijnVDK1 commented 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.

Dontorpedo commented 1 year ago

create a block "products" and pass the data there instead.