PHP code example of klepak / nova-router-link

1. Go to this page and download the library: Download klepak/nova-router-link library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

klepak / nova-router-link example snippets


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]),