Slots

What are the available admin slots?

Layout Slots

Login Slots

Sidebar Slots

Order Management Slots

Orders

Fulfillments

Subscriptions

Catalog Management Slots

Products

Manufacturers

Attributes

Categories

Tags

Collections

Customer Management Slots

Customers

Customer Groups

Content Management Slots

Combinations

Pages

Blocks

Missing Pages

Redirects

Discount Management Slots

Discounts

Vouchers

Price Lists

Configuration Slots

Shipping Methods

Fulfillment Methods

Payment Methods

Order Statuses

Order Status Groups

Order Return Reason Groups

Currencies

Countries

Country Groups

Locations

Product Types

Mail Notifications

Customer Tax Groups

Product Tax Groups

Tax Rates

Tax Rules

Setting Definitions

Flags

Export Logs

Users

How do I inject into admin slots?

Admin Slots allow you to add content within existing admin pages. The examples below show how to inject a view into the product edit page.

For a simple use case, simply provide a view:

\Aero\Admin\AdminSlot::inject('catalog.product.edit.cards', 'acme::products');

For more advanced use cases, instead of passing a view directly, you can provide a callback function:

\Aero\Admin\AdminSlot::inject('catalog.product.edit.cards', function ($data) {
    // add custom variables to the $data array

    return view('acme::products', $data);
});

These injections should typically sit inside the boot method of a Service Provider