262 results
Sorted by relevance
Catalog Management / Products
How do I remove the manufacturer from the product slug/url?
The manufacturer name is automatically prepended to the product slug (its URL). If you wish for this to not happen you can set the static
Aero\Catalog\Models\Product::$slugContainsManufacturer boolean to
false:
\Aero\Catalog\Models\Product::$slugContainsManu...
Setup / FAQs
Can I use Aero project credentials across multiple projects?
No, Credentials must not be shared between projects.
Setup / FAQs
Is Laravel required to run Aero?
Yes, the Aero platform is built on top of the Laravel framework. Knowledge of Laravel is not essential for basic Aero development but will help with more complex actions and configurations.
Setup / FAQs
What versions of Elasticsearch does Aero support?
Aero supports both Elasticsearch
6.x,
7.x &
8.x.
Support for Elasticsearch
6.x is provided by the
0.x version of
aerocommerce/elastic-search.
Support for Elasticsearch
7.x &
8.x is provided by the
1.x version of
aerocommerce/elastic-search.
It is hig...
Setup / FAQs
Which versions of PHP will Aero run on?
Aero requires PHP Version
7.2 and upwards.
Setup / FAQs
How do I configure the PHP memory limit?
Due to the number of fields that are sometimes present in the admin, it may be necessary to adjust the PHP
max_input_vars value.
The default of
1,000 fields can be too small when managing a product that contains hundereds of variants. This limit is quickly ...
Admin / General
How do I set the page title for the admin?
By default the page title for every admin page is generated from the route name. If you would like to manually set the page title you can set a title specifically for your route or you can return an
adminPageTitle variable to your view (this includes extendin...
Admin / Reports
How do I create a report?
To create a report, make a class that extends
\Aero\Admin\Reports\Report.
For example, let's make a basic stock report.
First, let's make the report class, this defines the base query for our report:
class StockReport extends \Aero\Admin\Reports\Report
{
...
Admin / Reports
How do I add a column to an existing report?
You can use the
addColumn() method(s) to add a column to an existing report:
\Aero\Admin\Reports\Implementations\SalesReport::extend(function (\Aero\Admin\Reports\Implementations\SalesReport $report, \Closure $next) {
// Add it as the first column
$re...
Admin / Reports
How do I add a filter to an existing report?
You can use the
addFilter() method to add a filter to an existing report:
\Aero\Admin\Reports\Implementations\SalesReport::extend(function (\Aero\Admin\Reports\Implementations\SalesReport $report, \Closure $next) {
$report->addFilter(\Aerocargo\Acme\Filte...
Admin / Reports
How do I add a lens to an existing report?
You can use the
addLens() method to add a lens to an existing report:
\Aero\Admin\Reports\Implementations\SalesReport::extend(function (\Aero\Admin\Reports\Implementations\SalesReport $report, \Closure $next) {
$report->addLens(\Aerocargo\Acme\Lenses\Tota...
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 ...