diff --git a/src/Console/Commands/CrudGeneratorCommand.php b/src/Console/Commands/CrudGeneratorCommand.php index 8f8adbd..c2cdcbf 100644 --- a/src/Console/Commands/CrudGeneratorCommand.php +++ b/src/Console/Commands/CrudGeneratorCommand.php @@ -56,7 +56,7 @@ public function handle() $this->info("List of tables: ".print_r($tables, true)); foreach ($tables as $t) { - if(str_contains($t, $prefix)) + if($prefix == '' || str_contains($t, $prefix)) $tablenames[] = strtolower(substr($t, strlen($prefix))); //else //$tablenames[] = strtolower($t);