diff --git a/composer.json b/composer.json index d21bf9e..4f7a2f6 100644 --- a/composer.json +++ b/composer.json @@ -34,9 +34,9 @@ }, "require": { "php": "^8.1.0", - "illuminate/support": "~10.0", - "illuminate/filesystem": "~10.0", - "illuminate/console": "~10.0" + "illuminate/support": ">=10.0.0", + "illuminate/filesystem": ">=10.0.0", + "illuminate/console": ">=10.0.0" }, "require-dev": { diff --git a/src/Console/Commands/EndpointMakeCommand.php b/src/Console/Commands/EndpointMakeCommand.php index b3524e0..705d0ee 100644 --- a/src/Console/Commands/EndpointMakeCommand.php +++ b/src/Console/Commands/EndpointMakeCommand.php @@ -86,7 +86,7 @@ public function handle() $this->replaceInFile( '//', - "return Inertia::render('".$vue."',[\n\t\t\t\n\t\t]);", + "return Inertia::render('".$vue."', [\n\t\t\t\n\t\t]);", $controllerPath ); } @@ -107,6 +107,7 @@ protected function replaceInFile($search, $replace, $path) protected function buildPath(string $path, string $file) { + if ($path === '') return $file; return $path . '/' . $file; } diff --git a/stubs/modal.form.stub b/stubs/modal.form.stub index cc755d7..16d1435 100644 --- a/stubs/modal.form.stub +++ b/stubs/modal.form.stub @@ -1,47 +1,47 @@ \ No newline at end of file diff --git a/stubs/page.form.stub b/stubs/page.form.stub index 6f8a078..e6e0bec 100644 --- a/stubs/page.form.stub +++ b/stubs/page.form.stub @@ -1,16 +1,21 @@