Skip to content

chris-ware/nova-route-link-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Route Link Tool

Nova Tool for linking to website routes

Latest Stable Version Total Downloads License StyleCI

Installation

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(),
    ];
}

Customization

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)
    ];
}