justbetter/laravel-nova-links

Easily add a links section to your Laravel Nova application

4.4.0 2024-04-08 10:04 UTC

This package is auto-updated.

Last update: 2024-10-19 14:52:07 UTC


README

Package banner

Laravel Nova Links

Gives you access to easily add (external) links into Laravel Nova's menu.

Versioning

Our major version corresponds to the major Nova version.

Installation

You can install the package via composer.

composer require justbetter/laravel-nova-links

Usage

Update your NovaServiceProvider to register the tool. Here you will be able to customize the name, icon and the links.

<?php

use JustBetter\NovaLinks\LinksTool;

public function tools(): array
{
    return [
        LinksTool::make(__('Links'), 'link', [
            // Pass a simple string for the url
            __('Job Queue') => url('/horizon'),

            // Or you can pass a Nova MenuItem for more flexibility
            __('Job Queue') => MenuItem::make(__('Job Queue'))
                ->openInNewTab()
                ->external()
                ->path(url('/horizon')),
        ]),
    ];
}

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Package footer