for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NovaNavigaAdPreview;
use Illuminate\Http\Request;
use Laravel\Nova\Menu\MenuSection;
use Laravel\Nova\Nova;
use Laravel\Nova\Tool;
class NovaNavigaAdPreview extends Tool
{
protected string $menuName = 'Naviga ad preview';
protected string $menuIcon = 'photograph';
/**
* Perform any tasks that need to happen when the tool is booted.
*
* @return void
*/
public function boot()
Nova::script('nova-naviga-ad-preview', __DIR__ . '/../dist/js/tool.js');
Nova::style('nova-naviga-ad-preview', __DIR__ . '/../dist/css/tool.css');
}
public function menu(Request $request)
return MenuSection::make($this->menuName)
->path('/nova-naviga-ad-preview')
->icon($this->menuIcon);
public function menuIcon(string $menuIcon): static
$this->menuIcon = $menuIcon;
return $this;
public function menuName(string $menuName): static
$this->menuName = $menuName;