258 results
for “custom module routes”
Sorted by relevance
Blueprint / Schema
How do I change where the schema is loaded from?
...ion () {
$path = base_path("modules/aerocargo/acme/schema.json");
...rsion) {
$path = base_path("modules/aerocargo/acme/temp/versions/{ ...rsion) {
$path = base_path("modules/aerocargo/acme/versions/{$vers ...]);
});
Saving Active Schema to Custom Location
setActiveSchemaPathRes...
Admin / Product Picker
How do I use the product picker?
...m any admin view inside of your module that extends the official admin ... <a href="{{ route('admin.modules') }}" class="btn">@include('ad ...a>
<span class="ml-4">My Module</span>
</h2>
<div class=" ...earch-term
?string
null
No
show-customer-price
bool
false
No
show-cost...
Admin / Permissions
How do I check for permissions?
..., 'acme.edit'])
...
@endcan
Routes
Route::get('/acme', [AcmeContro ...ss, 'index'])
->name('admin.modules.acme')
->middleware('can:acme.view');
Controllers
if ($this->can('acme.view')) {
// ...
}
if ($this->canAny(['acme.add', 'acme.edit'])...
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...
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 / 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...
API / Orders
View Order Endpoint
...us of the order (
null if none)
customer
object
The Customer of the order (
null if none)
...email
string
The email of the customer that placed the order
subtota ...d, partially_returned, returned
Customer
Name
Type
Description
id
int
...The id of the customer
name
string
The name of the c...
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 / 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...
API / General
What are the available endpoints?
...llection
name in place of
id.
Customers
Method
Endpoint
Permission
D ...escription
GET
/api/customers
customers.index
List customers
GET
/api/customers/{id}
customers.view
Get a customer
POST
/api/customers
customers.store
Create a customer
PUT
...
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...
Developer Documentation / Account Area
How do I extend a page or set in the account area?
...he page.
<?php
namespace Acme\MyModule;
use Aero\AccountArea\Http\Resp ...Page;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr ...ovider extends ModuleServiceProvider
{
public func ...;
}
}
<?php
namespace Acme\MyModule;
use Aero\AccountArea\Http\Resp...
Developer Documentation / Google Shopping Feed
How do I configure the Google Shopping feed?
...s table we can:
Navigate to the modules’ section in the admin and gene ...rate taxonomies through the modules’ interface 2. Run a command fr ... Setting the value in the admin modules’ section under Configuration i ...n the Google Shopping module.
Query parameters
Query paramet...
Developer Documentation / Pipelines
How do I extend pipelines?
... 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 add an option to items ...class should be extended in the module's ServiceProvideras shown below...
Developer Documentation / Settings
How do I add settings to the product model?
...settings
<?php
namespace Acme\MyModule;
use Aero\Catalog\Models\Produc ...t;
use Aero\Common\Providers\ModuleServiceProvider;
use Aero\Common ...;
class ServiceProvider extends ModuleServiceProvider
{
public func ... {
Product::settings('my-module', function (SettingGroup $group...
General / Pipelines
How do I extend pipelines?
... 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 add an option to items ...class should be extended in the module's ServiceProvider as shown belo...
Storefront / Listings Page
How do I extend the listings page query?
...have products that only certain customer groups can view and buy.
Firs ...talog\Models\Product::settings('customer_groups', function (\Aero\Comm ...{
$group->eloquent('allowed_customer_groups', \Aero\Account\Models ...\CustomerGroup::class)
->hint('...
Developer Documentation / Account Area
How do I inject into a slot in the account area?
...ed view.
<?php
namespace Acme\MyModule;
use Aero\AccountArea\AccountAr ...Slot;
use Aero\Common\Providers\ModuleServiceProvider;
class ServicePr ...ovider extends ModuleServiceProvider
{
public func ...IR__.'/../resources/views', 'my-module');
AccountAreaSlot::inje...