think.studio / nova-naviga-ad-preview
Laravel nova NavigaAd api requests preview.
1.2.1
2023-08-18 14:48 UTC
Requires
- php: ^8.1
- laravel/nova: ^4.0
- think.studio/laravel-naviga-ad: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.20
- guzzlehttp/guzzle: ^7.5
- orchestra/testbench: ^8.5
- phpunit/phpunit: ^10.2
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.13
README
Laravel nova admin tool to call naviga ad api endpoints using UI.
Install
composer require think.studio/nova-naviga-ad-preview
Package depends on laravel-naviga-ad. So please after install configure app according laravel-naviga-ad installation instructions.
Add tool to nova servoce provider:
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 */), ]; } // ... }