Skip to main content
611 results
Sorted by relevance
Admin / Vue
How do I use Vue in the admin?
When in an admin Blade view file you can use any Vue directive (such as v-for,  v-if,  v-on:click etc). It is recommended to use the  v-on:click syntax instead of  @click syntax to minimise any potential conflicts between Blade & Vue. Dev Mode Putting Vue int...
Admin / Vue
How do I put Vue in dev mode?
You can put the Admin Vue into dev mode by putting this code snippet in your Blade view: @push('scripts') <script> window.AeroAdmin.vue.use({ install(Vue) { Vue.config.devtools = true; }, }); </script> @...
Admin / Vue
How do I add a custom Vue component to the admin?
You need to add the  assetLinks function to your modules service provider so that your modules assets are publicly linkable. An example module service provider can be found here: https://github.com/aerocargo/admin-example-vue/blob/master/src/ServiceProvider.p...
Admin / Permissions
How do I register new permissions?
You can add new permissions by using \Aero\Admin\Permissions: // Add a single permission \Aero\Admin\Permissions::add('acme.view'); // Add multiple permissions \Aero\Admin\Permissions::add([ 'acme.view', 'acme.add', 'acme.edit', 'acme.delete...
Admin / Permissions
How do I check for permissions?
Blade @can('acme.view') ... @endcan @canany(['acme.add', 'acme.edit']) ... @endcan Routes Route::get('/acme', [AcmeController::class, 'index']) ->name('admin.modules.acme') ->middleware('can:acme.view'); Controllers if ($this->can('acme.view'))...
General / Commands
What are the available commands?
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 ...
Setup / Laravel
What is Laravel?
The Aero platform is built using the Laravel PHP framework. Laravel is a free, open-source PHP web framework designed to make building scalable web applications easier and faster by providing pre-built components and structure. Before developing with Aero, we ...
Search / Listings
How can I add custom attributes to the listing model?
You can extend the  \Aero\Search\Elastic\Pipelines\ListingAttributes pipeline to add custom attributes to the listing model. For example you can modify the listing's name to include the attributes when the listing is split by them. \Aero\Search\Elastic\Pipelin...
Search / Listings
How can I add a custom facet?
You can add a custom facet by extending the listing document. For example you can add a Stock Status facet: \Aero\Search\Elastic\Documents\ListingDocument::add('string-facets', function ($document) { $stock = $document->getModel()->availableStock() > 0; ...
Search / Listings
How can I pre-filter listings?
There may be occasions where you need to pre-filter listings. For example, you may want to only show listings that have stock: \Aero\Search\Elastic\Repositories\ElasticListings::extend(function (\Aero\Search\Elastic\Repositories\ElasticListings $listings) { ...
Search / Documents
What are the available documents?
There are 2 documents available: Aero\Search\Elastic\Documents\ListingsDocument used to hold information about the listings that are shown on the storefront. Aero\Search\Elastic\Documents\ProductDocument used to hold information about the products within the s...
Search / General
How do I re-index documents?
Aero automatically manages indexing changes to documents. For example, if a product's stock level changes the document is updated to reflect the current version. Adding and removing documents is also taken care of for you, sparing the need to schedule in daily...
Search / General
How do I re-build documents?
At times (especially during the development phase of a store build), it may be necessary to delete and documents and freshly index them. This process can be achieved using the following command: php artisan aero:search:rebuild Due to the nature of how this pro...
Search / Documents
How can I extend the document structure?
To extend a document, use the add() method, to define a closure that will return an  array of data to merge into the document structure: \Aero\Search\Elastic\Documents\ListingDocument::add('search-result', function ($document) { $colors = $document->getMo...
Search / Listings
How do I create a custom sort order for the listings pages?
When you set the sort get parameter in a listing pages url (e.g. ?sort=name-az), a method is called on the \Aero\Search\Elastic\Query\Builder class (for name-az the method sortByNameAz is called). You can find the default sort by methods in the Aero\Search\E...
Admin / Resource Lists
What are the available resource lists?
Class View \Aero\Admin\ResourceLists\AttributeGroupsResourceList admin::resource-lists.index \Aero\Admin\ResourceLists\BlocksResourceList admin::resource-lists.index \Aero\Admin\ResourceLists\CategoriesResourceList admin::resource-lists.index \Aero\Admin\Resou...
Admin / Resource Lists
How do I create a custom resource list?
To create a resource list you need a normal Laravel controller and a class that extends  Aero\Admin\ResourceListsAbstractResourceList. class OrdersResourceList extends \Aero\Admin\ResourceLists\AbstractResourceList { // } Your controller should be like this...
Admin / Resource Lists
How do I add a column to an existing resource list?
You can use the  addColumn() method(s) to add a column to an existing resource list: \Aero\Admin\ResourceLists\OrdersResourceList::extend(function (\Aero\Admin\ResourceLists\OrdersResourceList $list, \Closure $next) { // Add it as the first column $lis...