Appearance
Filter Reference
Navigation
admin_navigation_main
INFO
Called after preparing the AdminUI sidebar items. Allows you to add or remove navigation items, change titles or icons or even href locations
Return: array
Parameter | Type | Description |
---|---|---|
$value | array | An array of navigation items |
Example navigation item
php
[
"id" => 1
"ref" => "dashboard"
"title" => "Dashboard"
"route" => "admin.home"
"icon" => "mdi-speedometer"
"parent_id" => 0
"permissions" => null
"package" => "AdminUI"
"is_active" => true
"sort_order" => 1
"created_at" => "2022-10-02T16:50:46.000000Z"
"updated_at" => "2022-10-02T16:50:46.000000Z"
"children" => Illuminate\Database\Eloquent\Collection {#2725 ▶}
]
Ecommerce
admin_products_query
INFO
The search query from the AdminUI Ecommerce->Catalogue->Products page
Return: Illuminate\Database\Eloquent\Builder
Parameter | Type | Description |
---|---|---|
$query | Builder | The Eloquent Query Builder instance |
$request | Request | The Illuminate HTTP Request instance |
$data | array | Validated request data (see below) |
$data
php
[
'show_active' => ['sometimes', 'boolean'],
'show_featured' => ['sometimes', 'boolean'],
'show_parents' => ['sometimes', 'boolean'],
]