Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

418 total results found

How do I create a custom dashboard lens?

Developer Documentation Admin Dashboard Lenses

To create a dashboard lens you need to create a class that extends Aero\Admin\AdminLensand implements the datamethod. data Method This method is executed every time the lens needs data (when the dashboard loads or when the dashboard date range is changed). Th...

How do I use a custom view for my dashboard lens?

Developer Documentation Admin Dashboard Lenses

You can optionally make your dashboard lens use a custom view. To do this you need to set the protected $viewstring on your lens to the view you would like to use. <?php namespace Aero\Admin\Lenses; use Aero\Admin\AdminLens; use Illuminate\Http\JsonResponse; ...

How do I add a custom dashboard lens to the dashboard?

Developer Documentation Admin Dashboard Lenses

To add your custom dashboard lens to the dashboard you need to register it with the admin and the admin dashboard. To register your dashboard lens with the admin you need to call the Aero\Admin\Facades\Adminfacade registerLensmethod and pass in your dashboard ...

How do I remove a dashboard lens from the dashboard?

Developer Documentation Admin Dashboard Lenses

You are able to extend Aero\Admin\Http\Responses\AdminDashboardPageand use the removeLensmethod. You will need to pass in the key of the lens that you want to remove. <?php namespace Acme\MyModule; use Aero\Admin\Http\Responses\AdminDashboardPage; use Aero\Adm...

Admin Filters

Developer Documentation

Admin Filters

What is an admin filter?

Developer Documentation Admin Filters

Admin filters are the filters that populate the sidebars of reports and resource lists. As the name suggests, they allow users to filter the data they’re seeing through the report or resource list. All admin filters ultimately extend Aero\Admin\Filters\AdminFi...

How do I create a custom admin filter?

Developer Documentation Admin Filters

To create a custom admin filter you need to create a class that extends Aero\Admin\Filters\AdminFilterand implements the handle method. handle Method This method is executed on every request made to a report or resource list with your filter and accepts 2 para...

How do I create a checkbox list admin filter?

Developer Documentation Admin Filters

To create a checkbox list admin filter you need to create a class that extends Aero\Admin\Filters\CheckboxListAdminFilterand implements the handleCheckboxListand checkboxesmethods. handleCheckboxList Method This method is executed when any checkboxes are check...

How do I create an options date range admin filter?

Developer Documentation Admin Filters

The options date range admin filter works in the same way as the date range admin filter but displays some dynamic options to the user on the frontend. These dynamic options are especially useful when users save their applied filters. To create an options date...

How do I create a dropdown admin filter?

Developer Documentation Admin Filters

To create an options date range admin filter you need to create a class that extends Aero\Admin\Filters\DropdownAdminFilter and implements the handleDropdown and dropdowns methods. handleDropdown Method This method is executed when a dropdown option is set and...

How do I create a date range admin filter?

Developer Documentation Admin Filters

To create a date range admin filter you need to create a class that extends Aero\Admin\Filters\DateRangeAdminFilterand implements the handleDateRangemethod. handleDateRange Method This method is executed when a date is set and accepts 3 parameters. The first p...

How do I create a searchable select admin filter?

Developer Documentation Admin Filters

To create an options date range admin filter you need to create a class that extends Aero\Admin\Filters\SearchableSelectAdminFilter and implements the handleSearchableSelect, model, modelName, and searchRoute methods. handleSearchableSelect Method This method ...

Admin Product Picker Component

Developer Documentation

Admin Product Picker Component

How do I use the product picker in my custom module?

Developer Documentation Admin Product Picker Component

The Product Picker provides a modal that lets users select a single or many products/variants with quantities. Parts of the admin use this such as the Price Lists and Create Order form. Modules such as aerocargo/upsellsalso make use of the Product Picker. You ...

What are the available props for the product picker?

Developer Documentation Admin Product Picker Component

Prop Type Description get-products-url String This is the only required prop. This is the URL for the API to get the products from. It’s common to set this value to {{ route('admin.catalog.products.picker') }}. image-url-prefix String This is the image factory...

What are the available events for the product picker?

Developer Documentation Admin Product Picker Component

Event Description products-selected This event emits when the action button is clicked (bottom right of the modal) and provides an array of all of the selected product(s)/variant(s). selected This event emits when the action button is clicked (bottom right of ...

Admin Reports

Developer Documentation

Admin Reports

How do I create a custom report?

Developer Documentation Admin Reports

To create and register a custom report you need to use the Aero\Admin\AdminReportfacade inside of your app service providers boot method or module service providers setup method. The facade requires a class that extends Aero\Admin\Reports\Report. Additionally,...