PHP code example of fidum / laravel-nova-vapor-ui-link

1. Go to this page and download the library: Download fidum/laravel-nova-vapor-ui-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/ */

    

fidum / laravel-nova-vapor-ui-link example snippets


// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        new \Fidum\NovaVaporUILink\VaporUILink,
    ];
}

// app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        new \Fidum\NovaVaporUILink\VaporUILink('Custom Label'),

        // or
        \Fidum\NovaVaporUILink\VaporUILink::make('Custom Label')
    ];
}

// app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        new \Fidum\NovaVaporUILink\VaporUILink(null, 'blank'),
        
        // or
        \Fidum\NovaVaporUILink\VaporUILink::make()->target('blank'),
    ];
}