Skip to content

Commit 9bd4cb8

Browse files
committed
Correct getLabel exporter method name & route name
1 parent 4ba96bd commit 9bd4cb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/ExporterMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function createRoute(): void
128128

129129
$this->components->info(sprintf(
130130
'Please add following code into the <comment>%s</comment> file:',
131-
plugin_path("{$this->argument('plugin')}/routes/data-synchronize.php")
131+
plugin_path("{$this->argument('plugin')}/routes/web.php")
132132
));
133133

134134
info($route);

stubs/exporter.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class {{ class }} extends Exporter
1111
/**
1212
* Set the label of the exporter to display in the admin panel and export file name.
1313
*/
14-
public function label(): string
14+
public function getLabel(): string
1515
{
1616
return '{{ pluralName }}';
1717
}

0 commit comments

Comments
 (0)