Skip to content

Commit d508678

Browse files
committed
fix: correct route definition syntax in ImportDefaultData command
1 parent 31aeb2b commit d508678

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Commands/ImportDefaultData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ protected function publishRouteDefinition(): void
184184
$routeFile = base_path('routes/web.php');
185185

186186
// Check file exists and contains the definition
187-
if (file_exists($routeFile) && ! Str::contains(file_get_contents($routeFile), 'InspireCms::routes()')) {
187+
if (file_exists($routeFile) && ! Str::contains(file_get_contents($routeFile), 'InspireCms::routes();')) {
188188
// Append at the end of the file
189189
file_put_contents($routeFile, PHP_EOL . $this->cmsRouteDefinition(), FILE_APPEND);
190190
}
@@ -202,6 +202,6 @@ protected function createSymlink(): void
202202

203203
protected function cmsRouteDefinition(): string
204204
{
205-
return '\SolutionForest\InspireCms\Facades\InspireCms::routes()';
205+
return '\SolutionForest\InspireCms\Facades\InspireCms::routes();';
206206
}
207207
}

0 commit comments

Comments
 (0)