PHP code example of justbetter / laravel-nova-links
1. Go to this page and download the library: Download justbetter/laravel-nova-links library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
justbetter / laravel-nova-links example snippets
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')),
]),
];
}