Advanced Search
Search Results
418 total results found
Resource Lists
Resource Lists
How do I create a custom bulk action?
If we wish to add a new bulk action to a screen within the admin, all we have to do is create the bulk action using the BulkActionfacade. The bulk action also requires a specific Resource List, for example for Products. BulkAction::create(BulkActionClass::clas...
What are the default resource lists?
The following classes are in the Aero\Admin\ResourceListsnamespace and any class that doesn’t have a view uses the admin::resource-lists.indexview. Class View AttributeGroupsResourceList – BlocksResourceList – CategoriesResourceList admin::catalog.categories.i...
How do I create my own resource list?
To create a resource list you need a normal Laravel controller and a class that extends Aero\Admin\ResourceListsAbstractResourceList. <?php namespace Acme\MyModule\ResourceLists; use Aero\Admin\ResourceLists\AbstractResourceList; class OrdersResourceList exten...
How do I extend an exisiting resource list?
Adding a New Column To add columns to a resource list you can use the addColumn, addColumnBefore, or addColumnAftermethods from within the pipeline. These methods return a usual resource list column which allows you to chain on the other available column metho...
What is a bulk action?
A bulk action allows for the selection of multiple values from a list, and apply some logic to items that have only been selected. Bulk actions exist for many different Resource Lists, which is what is used for determining items that have been selected. Bulk a...
How do I add a custom column to the product list?
As the products 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\ProductsResour...
How do I add a custom column to the order list?
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...
Response Builders
Response Builders
How do I access the properties of the response builder?
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?
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?
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?
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?
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?
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?
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?
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?
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 ...