Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.4 KB

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