We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2dd97c9 + 0210e18 commit de9f46aCopy full SHA for de9f46a
src/Console/Commands/CrudModelBackpackCommand.php
@@ -62,7 +62,7 @@ public function handle()
62
! $this->option('force')) &&
63
$this->alreadyExists($this->getNameInput())) {
64
$file = $this->files->get($path);
65
- $file_array = explode(PHP_EOL, $file);
+ $file_array = preg_split('/(\r\n)|\r|\n/', $file);
66
67
// check if it already uses CrudTrait
68
// if it does, do nothing
0 commit comments