PHP code example of think.studio / nova-naviga-ad-preview
1. Go to this page and download the library: Download think.studio/nova-naviga-ad-preview 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/ */
think.studio / nova-naviga-ad-preview example snippets
namespace App\Providers;
use NovaNavigaAdPreview\NovaNavigaAdPreview;
class NovaServiceProvider extends NovaApplicationServiceProvider
{
// ...
public function tools()
{
return [
NovaNavigaAdPreview::make()
// optionally:
->menuName('My custom name')
->menuIcon('photograph')
->canSee(fn ($request) => true /* add your check */),
];
}
// ...
}