diff --git a/src/Commands/PrefillFactory.php b/src/Commands/PrefillFactory.php index 12609bc..c59bd14 100644 --- a/src/Commands/PrefillFactory.php +++ b/src/Commands/PrefillFactory.php @@ -86,9 +86,9 @@ public function handle() return $this->getPropertiesFromTable($column, $tableName, $tableIndexes); })->merge( $this->getPropertiesFromMethods() - )->filter(function ($data) { - return (bool) $data; - }) + )->filter(function ($data) { + return (bool) $data; + }) ->unique() ->values() ->all(); @@ -369,7 +369,7 @@ protected function qualifyClass($name) $rootNamespace = app()->getNamespace(); - if ($this->option('own-namespace') || starts_with($name, $rootNamespace)) { + if ($this->option('own-namespace') || Str::startsWith($name, $rootNamespace)) { return $name; }