Appearance
Registering Links
You can register links from any module or service using the QuickLinks Facade. This is typically done in the boot() method of your module's ServiceProvider:
php
use Modules\QuickLinks\Facades\QuickLinks;
// In your ServiceProvider's boot() method
public function boot()
{
QuickLinks::addLink(
title: 'My Link',
description: 'Description of my link',
url: '/admin/my-link',
icon: 'phosphor-star-duotone',
group: 'Category', // Optional
sort: 10 // Sort order
);
}Parameters for the addLink Method
| Parameter | Type | Description | Required |
|---|---|---|---|
| title | string | Link title | Yes |
| description | string | Short description of the link | Yes |
| url | string | Destination URL of the link | Yes |
| icon | string | Icon component name (phosphor-*-duotone style) | No |
| group | string\null | Link group/category for grouping | No |
| sort | int | Sort order (smaller first) | No |