justbetter / laravel-nova-links
Easily add a links section to your Laravel Nova application
Package info
github.com/justbetter/laravel-nova-links
Type:package
pkg:composer/justbetter/laravel-nova-links
4.5.0
2025-02-17 13:23 UTC
Requires
- php: ^8.3
- laravel/framework: ^11.0|^12.0
- laravel/nova: ^5.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.20
- orchestra/testbench: ^9.0
README
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.
| Package version | Nova version |
|---|---|
^4.0 |
^4.0 |
^1.0 |
^4.0 |
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.