From 9bd4cb82e33a5bec32e588465972f7df4916d15c Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Thu, 2 May 2024 10:43:13 +0700 Subject: [PATCH] Correct `getLabel` exporter method name & route name --- src/Commands/ExporterMakeCommand.php | 2 +- stubs/exporter.stub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/ExporterMakeCommand.php b/src/Commands/ExporterMakeCommand.php index e798833..a7b51dd 100644 --- a/src/Commands/ExporterMakeCommand.php +++ b/src/Commands/ExporterMakeCommand.php @@ -128,7 +128,7 @@ protected function createRoute(): void $this->components->info(sprintf( 'Please add following code into the %s file:', - plugin_path("{$this->argument('plugin')}/routes/data-synchronize.php") + plugin_path("{$this->argument('plugin')}/routes/web.php") )); info($route); diff --git a/stubs/exporter.stub b/stubs/exporter.stub index 58d43b4..b18b45a 100644 --- a/stubs/exporter.stub +++ b/stubs/exporter.stub @@ -11,7 +11,7 @@ class {{ class }} extends Exporter /** * Set the label of the exporter to display in the admin panel and export file name. */ - public function label(): string + public function getLabel(): string { return '{{ pluralName }}'; }