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 new event listener?

Developer Documentation Events

To create a new listener class for one of our events, we can use Artisan to scaffold the listener from the project root directory: php artisan make:listener UpdateDetails After adding all the necessary functionality for our listener, we have to make Aero aware...

What are the events available?

Developer Documentation Events

Account AddressCreated - AddressDeleted - AddessUpdated - CustomerManualylCreated - CustomerRegistered - CustomerUpdated - CustomerChanged - PasswordResetRequest Cart CartEmptied - CartItemAdded - CartItemRemoved - CartItemUpdated - OrderCanceled - OrderClosed...

How do I add a custom event to a Service Provider?

Developer Documentation Events

Laravel events provide an observer implementation, allowing you to listen and observe for specific tasks happening in your application. Adding a custom event to a ServiceProvidermeans that the application will listen to it as soon as it occurs. In terms of cho...

What are event listeners?

Developer Documentation Events

Event listeners, as the name suggests, listen to events that have been assigned to them. This means that listeners have to first be manually mapped for which events they should listen to. Mappings for Event Listenersare declared in the appropriate Service Prov...

How do I create a new event?

Developer Documentation Events

To create a new event, we first have to scaffold the class using Artisan in the project root directory: php artisan make:event Registered The above command scaffolds a class into the app/Eventsand we can modify it accordingly to our needs. After applying all t...

How do I make custom mail notification events?

Developer Documentation Events

To create an event that shows up in the Mail Notifications part of the admin your event needs to extend Aero\Events\ManagedEventand have Aero\Events\ManagedHandleras a registered listener. To create an event you need to create a class that extends Aero\Events\...

Extending Core Functionality

Developer Documentation

Extending Core Functionality

What are models and how do I use them?

Developer Documentation Extending Core Functionality

All models provided as part of the Aero core platform are Eloquent models For example, if a module provided reviewsfor products, the reviewsmethod can be added to the Product model using a macro: \Aero\Catalog\Models\Product::macro('reviews', function () { ...

How do I add a custom field to the new and edit product page?

Developer Documentation Extending Core Functionality

In this mini tutorial we will add a notes field to the product new and edit page for the product and each variant. This mini tutorial assumes that you have a module setup or you’re happy working from the app service provider (using the boot method). You can se...

What are the available commands?

Developer Documentation Extending Core Functionality

php artisan make:module This command scaffolds a module for you (you need to provide a valid name for the module such as aerocargo/my-module). This involves setting up composer and publishing some default module stubs. php artisan aero:configure This command w...

How to add a custom field to the address forms?

Developer Documentation Extending Core Functionality

This short tutorial will walk you through adding an address line 3 field to all of the address forms (found in the admin, account-area, and checkout). Migrations The first step is to add your field to all of the address tables so that it can be stored. To do t...

How do I extend the address forms?

Developer Documentation Extending Core Functionality

Aero has address forms in the checkout, account-area, and admin that can be extended. Storefront Address Forms The storefront address forms are address forms found on your storefront (the checkout and the account-area). These forms are customer facing and all ...

How do I add settings to my model?

Developer Documentation Extending Core Functionality

This tutorial will explain the steps required to add settings to your model and assumes you have your model setup with create and edit pages. Adding a Trait to your Model The first step is to add the Aero\Common\Traits\CanHaveSettingstrait to your model. <?ph...

How do I add a custom price to a product with a module?

Developer Documentation Extending Core Functionality

In this mini tutorial we will add some checkboxes to the product page that when checked add an additional charge to the product. The additional charge will be shown dynamically on the product page as it changes or the product's price changes (due to different ...

General

Developer Documentation

General

How do I set up a slug validator?

Developer Documentation General

You can control if a collection of slugs is valid or not by setting your own validator: \Aero\Store\Routing\Slugs::setValidator(function ($slugs, $resolver) { if ($resolver !== 'listings') return true; if ($slugs->count() < 3 && $slugs->where('model_ty...

How do I add a route to the CSRF exception list?

Developer Documentation General

If you do not want your route to require a valid CSRF token Code To add a route to the exceptions list through code you need to add to the static VerifyCsrfToken::$exceptionsarray. <?php namespace Acme\MyModule; use Aero\Common\Providers\ModuleServiceProvider;...

What queues does Aero use?

Developer Documentation General

Queues are used so that HTTP requests can remain snappy and more intensive code can be executed later. You can learn more about queues here Queue Description search This queue has search jobs. The majority of these jobs will be responsible for reindexing listi...