Nova Tool for linking to website routes
You can install the package in to a Laravel app that uses Nova via composer:
composer require chris-ware/nova-route-link-tool
Next, you must register the card with Nova. This is typically done in the cards
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvder.php
// ...
public function tools()
{
return [
// ...
\ChrisWare\NovaRouteLinkTool\NovaRouteLinkTool::make(),
];
}
You are able to customize the route name, the label and the target.
// in app/Providers/NovaServiceProvder.php
// ...
public function cards()
{
return [
// ...
\ChrisWare\NovaRouteLinkCard\NovaRouteLinkCard::make($route, $label, $target)
];
}