159 results
for “custom module routes”
Sorted by relevance
Developer Documentation / Admin Dashboard Lenses
How do I use a custom view for my dashboard lens?
... make your dashboard lens use a custom view. To do this you need to set the protected
$viewstring on your lens to the view you would like to use.
<?php
namespace Aero\Admin\Lenses;
use Aero\Admin\AdminLens;
use Illuminate\Http\JsonResponse;
use Illuminate...
Developer Documentation / Admin Filters
How do I create a custom admin filter?
To create a custom admin filter you need to create a class that extends Aero\Admin\Filters\AdminFilterand implements the handle method.
handle Method
This method is executed on every request made to a report or resource list with your filter and accepts 2 para...
Developer Documentation / Admin Reports
How do I add exporters to my custom report?
...xporter.
<?php
namespace Acme\MyModule\Reports;
use Aero\Admin\Reports ...xported.
<?php
namespace Acme\MyModule\Reports\Exporters;
use Aero\Adm ...orter;
use Carbon\Carbon;
class CustomExporter extends ReportExporter
{
public function handle($columns, ...
Developer Documentation / Admin Reports
How do I add admin filters to my custom report?
... the article "How do I create a custom report?
To register your newly ...s array.
<?php
namespace Acme\MyModule\Reports;
use Aero\Admin\Filters\Order\OrderOrderedAtDateAdminFilter;
use Aero\Admin\Reports\Report;
use Aero\Admin\Reports\Traits\HasFilters;
u...
Storefront Developer Documentation / Checkout
How do I add a Custom CSS File to the Checkout?
You can add a custom CSS file to the checkout by creating a
checkout.cssfile in your public directory.
Example contents where we are changing the to use a black background:
.header {
background-color:#000000;
}
.header__progress li:before {
background...
Storefront Developer Documentation / Themes
How do I create a custom theme?
If you've created a custom .yml config file you can build ...:build your_theme_name --config=custom.yml
Additional information
When running the theme build command you will be prompted to run
npm run initthis will compile your theme styles upon build and is ...
Developer Documentation / Admin Reports
How do I add lenses to my custom report?
...ur lens.
<?php
namespace Acme\MyModule\Reports\Lenses;
use Aero\Admin\ ...s array.
<?php
namespace Acme\MyModule\Reports;
use Acme\MyModule\Reports\Lenses\TotalOrdersLens;
use Aero\Admin\Reports\Report;
use Aero\Admin\Reports\Traits\HasLens;
use Aero\Cart\...
Developer Documentation / Admin Reports
How do I add a table to my custom report?
...columns.
<?php
namespace Acme\MyModule\Reports\Tables;
use Aero\Admin\ ...s array.
<?php
namespace Acme\MyModule\Reports;
use Acme\MyModule\Reports\Tables\OrdersReportTabl ...ing
Null
<?php
namespace Acme\MyModule\Reports\Tables;
use Aero\Admin\Reports\Rep...
Developer Documentation / Configuration
How do I check for permissions?
...ample, checking a user has the
custom.viewor
custom.managepermissions.
Guarding con ...tent in a Blade file:
@can('custom.view')
...
@endcan
@canany( ...['orders', 'custom'])
...
@endcan
Checking the ...ss an endpoint:
Route::get('/my-module', [MyModuleController::class, '...
Developer Documentation / Extending Core Functionality
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 comp ...ser and publishing some default module stubs.
php artisan aero:configu...
Order Management / Orders
How do I create a new order in the admin?
... admin, this can be useful if a customer places an order over the tele ...der details page just without a customer or any products.
How do I add ...ts to the order.
How do I add a customer to the order?
Now we’ve added ... onto selecting or creating the customer that this order is for.
The f...
Storefront Developer Documentation / Themes
How do I install a theme?
... require a couple of additional modules to add extra functionality whi ...tall next.
Install the required modules
Our themes make use of the lis ...ng collections and account area modules to further enhance both the ad ...e installed all of the required modules we can move on to;
What are th...
Catalog Management / Products
How do I create a product with variants?
... your chosen attribute group. - Custom sort- checking this box will al ...e varients are displayed to the customer. When this box is checked you ...e- this is the normal price the customer will pay for the item. - Redu ...name- this is used to provide a custom name for this variant that is d...
Developer Documentation / Admin Slots
What are the available backend admin slots?
...order.view.cards.extra.bottom-
customer.new.header.buttons-
customer.new.cards-
customer.edit.header.buttons-
customer.edit.cards-
customer.edit.extra.bottom-
customer.edit.extra.sidebar-
catalog. ...edirects.index.header.buttons-
customers.groups.index.header.buttons-...
Developer Documentation / Response Builders
How do I extend responses?
... is to be included as part of a module, then it can be added to the se ...tup method of the module's Service Provider.
For example ..., if a module needs to send a variable footo ...class should be extended in the module's Service Provideras shown belo...
Developer Documentation / Settings
How do I handle translations?
...lations.
<?php
namespace Acme\MyModule;
use Aero\Common\Facades\Settin ...gs;
use Aero\Common\Providers\ModuleServiceProvider;
use Aero\Common ...;
class ServiceProvider extends ModuleServiceProvider
{
public func ... Settings::group('acme-my-module', function (SettingGroup $group...
Developer Documentation / Admin Reports
How do I extend existing reports?
...nded using a pipeline from your modules service providers setup method ... report.
<?php
namespace Acme\MyModule;
use Aero\Admin\Reports\Impleme ...port;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr ...ovider extends ModuleServiceProvider
{
public func...
Developer Documentation / Admin Slots
How do I inject a view into a backend admin slot?
... is to be included as part of a module, then it can be added in the se ...tup method of the module's ServiceProvider.
When registe ...example:
<?php
namespace Acme\MyModule;
use Aero\Admin\AdminSlot;
use ...Aero\Common\Providers\ModuleServiceProvider;
class ServicePr...