From f7fb8d5358e5d6e0505517bc86ff2c99cf57cb89 Mon Sep 17 00:00:00 2001 From: rvanderheijden Date: Wed, 24 Aug 2022 12:38:27 +0200 Subject: [PATCH 1/2] added abstract menu function --- src/NovaImport.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/NovaImport.php b/src/NovaImport.php index aa1a9fe..317197d 100644 --- a/src/NovaImport.php +++ b/src/NovaImport.php @@ -14,7 +14,18 @@ class NovaImport extends Tool */ public function boot() { - Nova::script('nova-import', __DIR__.'/../dist/js/tool.js'); - Nova::style('nova-import', __DIR__.'/../dist/css/tool.css'); + Nova::script('nova-import', __DIR__ . '/../dist/js/tool.js'); + Nova::style('nova-import', __DIR__ . '/../dist/css/tool.css'); + } + + /** + * Build the menu that renders the navigation links for the tool. + * + * @param \Illuminate\Http\Request $request + * @return mixed + */ + public function menu(Request $request) + { + return []; } } From 08ac32ec510d90347bd84105bd5615a129c206f0 Mon Sep 17 00:00:00 2001 From: Ron van der Heijden <4101322+ronvanderheijden@users.noreply.github.com> Date: Thu, 1 Sep 2022 16:31:16 +0200 Subject: [PATCH 2/2] Update NovaImport.php --- src/NovaImport.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NovaImport.php b/src/NovaImport.php index 317197d..ee76bf4 100644 --- a/src/NovaImport.php +++ b/src/NovaImport.php @@ -2,6 +2,7 @@ namespace Anaseqal\NovaImport; +use Illuminate\Http\Request; use Laravel\Nova\Nova; use Laravel\Nova\Tool;