PHP code example of vmitchell85 / nova-links

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

    

vmitchell85 / nova-links example snippets


// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        (new \vmitchell85\NovaLinks\Links('Documentation'))
            ->addExternalLink('Laravel Docs', 'https://laravel.com/docs')
            ->addExternalLink('Nova Docs', 'https://nova.laravel.com/docs')
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        (new \vmitchell85\NovaLinks\Links('All Links'))
            ->addLink('Nova Main', '/')
            ->addExternalLink('Laravel Docs', 'https://laravel.com/docs'),
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        (new \vmitchell85\NovaLinks\Links('Quick Links'))
            ->addLink('Nova Main', '/')
            ->addExternalLink('Frontend', url('/')),

        (new \vmitchell85\NovaLinks\Links('Laravel-related News'))
            ->addExternalLink('Laravel Blog', 'https://blog.laravel.com')
            ->addExternalLink('Laravel News', 'https://laravel-news.com'),
    ];
}

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        (new \vmitchell85\NovaLinks\Links('Laravel-related News'))
            ->addLink('Nova Main', '/', true)
            ->addExternalLink('Laravel News', 'https://laravel-news.com', true),
    ];
}