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

349 total results found

How do I add a custom column to the order list?

Developer Documentation Resource Lists

As the orders list is a resource list you can add a custom column like this: More information on resource lists can be found in the article "How do I extend an existing Resource List? <?php namespace Acme\MyModule; use Aero\Admin\ResourceLists\OrdersResourceLi...

How do I access the properties of the response builder?

Developer Documentation Response Builders

All response builders hold properties that were assigned to them upon creation from the request. These properties are typically the arguments that would be passed to a conventional Laravel controller and subsequently used in the code within the controller. For...

How do I pass data to a response?

Developer Documentation Response Builders

The most common task performed when extending responses, is setting additional data. Typically, for HTML responses that render from a view, this involves sending data to the view to be used as a variable. If the response returns JSON, it may be adding addition...

How do I redirect a response?

Developer Documentation Response Builders

Sometimes you may wish to redirect the user to another location, either to an external site or within the store. To do so, pass the URL, route(), or an Illuminate\Http\RedirectResponseinstance to the **setRedirect()**method. For example, if you stored the age ...

How do I set the response status code?

Developer Documentation Response Builders

There may be situations where the HTTP response status needs to be altered. By default, the returned status is 200, however, this can be changed by passing the new status code to the **setStatus()**method: \Aero\Store\Http\Responses\ProductPage::extend(functio...

How do I set response headers?

Developer Documentation Response Builders

When extending the response builder, you can set HTTP headers to be sent with the response: \Aero\Store\Http\Responses\ProductPage::extend(function ($page) { $page->setHeader('foo', 'bar'); });

How do I attach middlewear to a response builder?

Developer Documentation Response Builders

Since Aero does not expose the underlying routes and controllers, middleware can be attached directly to the response builder. This allows for code to be executed before the main pipeline is run. For example, to restrict all products from being accessible to g...

How do I extend responses?

Developer Documentation Response Builders

Adding additional code to run on the response is as simple as calling the **extend()**method on the response builder class. This is typically done from within a Service Provider. If the code is unique to a particular store it could be placed in the boot method...

How do I change the response view?

Developer Documentation Response Builders

For responses that return HTML, a Twig view file is used. Whilst these are originally defined, the view can be changed. For example, to change the product page view based on product data: \Aero\Store\Http\Responses\ProductPage::extend(function ($page) { if...

What are the available responses from the response builder?

Developer Documentation Response Builders

Core Class Description View Homepage The homepage of the store. homepage.twig ProductPage The product page providing information on a particular product. product.twig ListingsPage The listings page which displays available products for the particular criteria ...

What are the settings available to developers?

Developer Documentation Settings

Settings allow you to add dynamic values to your modules that can be modified by admin users easily through the admin. The values of your settings (unless the value is the default you set) are stored in json files inside of your storage directory. └─ storage ...

Do do I set the default value of my custom setting?

Developer Documentation Settings

You can add a default value to any setting by using the defaultmethod and passing your default value. <?php namespace Acme\MyModule; use Aero\Common\Facades\Settings; use Aero\Common\Providers\ModuleServiceProvider; use Aero\Common\Settings\SettingGroup; class...

How do I register custom settings?

Developer Documentation Settings

To register settings you need to use the Aero\Common\Facades\Settingsfacade from the setupmethod of your modules service provider. You should call the groupmethod on the facade and pass in a unique name for your settings group and a closure that defines your s...

How do I access a custom setting?

Developer Documentation Settings

You can access a setting by using the settingfunction that is available in PHP, Blade, and Twig. You simply need to pass your setting group name, a full stop, and then the settings name. setting(‘acme-my-module.allow_list’)

What are the available setting types?

Developer Documentation Settings

Setting Description $group->array(‘allow_list’); Returns an array. $group->boolean(‘enabled’); Returns a boolean, true or false. $group->eloquent('order_status', OrderStatus::class); Stores the key of the eloquent model you pass and returns an instance of the ...

How do I configure the admin edit page?

Developer Documentation Settings

By default your setting group is editable through the admin by a generated edit page. You cannot remove this generated edit page but you can stop users from being able to edit the settings using it. It’s important to note that if you disable editing through th...

How do I handle translations?

Developer Documentation Settings

When defining your setting groups title/summary, or a settings label/hint you can make use of Laravel Localization for translations. <?php namespace Acme\MyModule; use Aero\Common\Facades\Settings; use Aero\Common\Providers\ModuleServiceProvider; use Aero\Comm...

How do I add settings to the product model?

Developer Documentation Settings

Using the same syntax as when you create settings <?php namespace Acme\MyModule; use Aero\Catalog\Models\Product; use Aero\Common\Providers\ModuleServiceProvider; use Aero\Common\Settings\SettingGroup; class ServiceProvider extends ModuleServiceProvider { p...