How do I inject into checkout slots?
Checkout Slots allow you to add content within existing admin pages. The examples below show how to inject a view into the cart item list.
For a simple use case, simply provide a view:
\Aero\Checkout\CheckoutSlot::inject('item.info', 'acme::cart-item');
For more advanced use cases, instead of passing a view directly, you can provide a callback function:
\Aero\Checkout\CheckoutSlot::inject('item.info', function ($data) {
// add custom variables to the $data array
return view('acme::cart-item', $data);
});
These injections should typically sit inside the boot method of a Service Provider