klepak / nova-router-link
Adds a field that generates a link using the Nova Router
Installs: 101 177
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 3
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-27 19:53:57 UTC
README
Adds a field that generates a link using the Nova Router
Installation
composer require klepak/nova-router-link
Usage
use Klepak\NovaRouterLink\RouterLink; RouterLink::make(__('Process Details'), 'process_id') ->route('process-details', [ 'processId' => $this->process_id ]);
use Klepak\NovaRouterLink\RouterLink; use Suenerds\NovaSearchableBelongsToFilter\NovaSearchableBelongsToFilter; use App\Nova\Process; $filters = base64_encode(json_encode([ ['class' => NovaSearchableBelongsToFilter::class . '\\Process', 'value' => [ 'display' => $this->title, 'value' => $this->id, ] ] ])); RouterLink::make(__('Process Filter'), 'process_id') ->route('index', ['resourceName' => Process::uriKey()], ['processes_filter' => $filters]),