diff --git a/src/Commands/DiscoverChildren.php b/src/Commands/DiscoverChildren.php index 4d0f307..b2f47ba 100755 --- a/src/Commands/DiscoverChildren.php +++ b/src/Commands/DiscoverChildren.php @@ -5,6 +5,7 @@ use hanneskod\classtools\Iterator\ClassIterator; use Illuminate\Console\Command; use Illuminate\Database\Eloquent\Model; +use Illuminate\Support\Arr; use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; use Tightenco\Parental\HasChildren; @@ -18,11 +19,17 @@ class DiscoverChildren extends Command public function handle() { + $children = $this->findChildren(); + file_put_contents( $this->path(), - 'findChildren(), true).';'.PHP_EOL + 'output->writeln("Parental: Successfully discovered {$count} child classes!"); + return true; }