chris-ware/nova-route-link-tool

1.0.0 2018-12-09 20:25 UTC

This package is auto-updated.

Last update: 2022-11-10 06:05:49 UTC


README

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