PHP code example of mad-web / nova-horizon-link

1. Go to this page and download the library: Download mad-web/nova-horizon-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/ */

    

mad-web / nova-horizon-link example snippets


// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \MadWeb\NovaHorizonLink\HorizonLink,
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \MadWeb\NovaHorizonLink\HorizonLink('Custom Label'),
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...

        new \MadWeb\NovaHorizonLink\HorizonLink(null),
        // or
        \MadWeb\NovaHorizonLink\HorizonLink::useLogo(),
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...

        new \MadWeb\NovaHorizonLink\HorizonLink('Horizon Queues', 'blank'),
        // or
        \MadWeb\NovaHorizonLink\HorizonLink::useLogo('blank'),
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...

        \MadWeb\NovaHorizonLink\HorizonLink::make()->target('blank'),
        // or
        \MadWeb\NovaHorizonLink\HorizonLink::useLogo()->target('blank'),
    ];
}