Skip to content

Commit

Permalink
Fix preventing creating crud for all tables with no prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kEpEx committed Dec 26, 2015
1 parent 3d2cb98 commit 2d10458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/CrudGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d10458

Please sign in to comment.