351 results
Sorted by relevance
Developer Documentation / Php Traits
Aero\\Common\\Traits\\CanExtendFillable
This trait can be added to a model class. When added your model will have the ability to have fillables dynamically added. The trait adds the following methods:
static makeFillable Method
This method accepts a key for the attribute to make fillable.
Developer Documentation / Php Traits
Aero\\Common\\Traits\\CastsToJavaScript
This trait can be added to a model class. This trait provides a way of defining attributes that should be kept when casting to javascript. You can define these attributes in a protected $castsToJsarray. The trait adds the following methods:
static addCastToJs ...
Developer Documentation / Php Traits
Aero\\Common\\Traits\\Sluggable
This trait can be added to a model class. The trait adds a relationship to Aero\Store\Models\Slugand helper methods for adding a slug to the model.
Developer Documentation / Php Traits
Aero\\Catalog\\Traits\\Taggable
This trait can be added to a model class. The trait adds the ability to add tags to the model. The trait adds the following methods:
tag Method
This method accepts a Aero\Catalog\Models\Tagand will attach the tag to the model without detaching any other tags.
...
Developer Documentation / Php Traits
Aero\\Common\\Traits\\CanHaveAdditionalAttributes
This trait can be added to a model class. When added your model will have the ability to have additional attributes. The trait adds the following methods:
additionals Method
This is the relationship method. This provides the relationship to Aero\Common\Models\...
Developer Documentation / Php Traits
Aero\\Catalog\\Traits\\HasPrices
This trait can be added to a model class. This trait adds prices to the model. The trait adds the following methods:
currentPrices Method
This method returns a collection of the current viable price based upon the date and time.
basePrice Method
This method re...
Developer Documentation / Php Traits
Aero\\Store\\Traits\\Seoable
This trait can be added to a model class. The trait adds a relationship to Aero\Store\Models\Seoand helper methods for adding SEO data to the model.
Developer Documentation / Php Traits
Aero\\Responses\\Traits\\HasSections
This trait can be added to a response builder class. It adds useful methods for managing sections of the page. There are other traits (HasBottomSections, HasTopSections, and HasSidebarSections) in the same namespace that add more section helpers (these traits ...
Developer Documentation / Php Traits
Aero\\Admin\\Traits\\HasPermissions
This trait adds the ability to add permissions to a class easily. The trait adds the following methods:
permissions Method
This method accepts an array that will set the permissions required.
allowed Method
This method optionally accepts a user and will return...
Developer Documentation / Php Traits
Aero\\Admin\\Traits\\IsExtendable
This trait can be added to a class. This trait can be used on Pipelines (more information "introduction to pipelines
Developer Documentation / Pipelines
What are the available pipelines
Class
Description
Payload
CartItemBuilder
The process that occurs when adding an item to the cart. Extending this class allows for manipulation of the cart item before it is saved to the cart.
Aero\Cart\CartItem $item
ContentForHead
The HTML content that will ...
Developer Documentation / Pipelines
How do I extend pipelines?
The payload data can be altered using the **extend()**method. 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 of the AppServiceProvider. If it is to be included as pa...
Developer Documentation / 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...
Developer Documentation / Resource Lists
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...
Developer Documentation / Resource Lists
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...
Developer Documentation / Resource Lists
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...
Developer Documentation / Resource Lists
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...
Developer Documentation / Resource Lists
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...