Skip to content

Commit

Permalink
seed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shunnmugam authored Jun 22, 2022
1 parent e7dd50f commit 44ea8bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Commands/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ public function handle()
//print_r($files);
foreach ($files as $file) {
$class_name = preg_replace('/\..+$/', '', $file);
$m = ltrim($module, '/');
$m = str_replace('/', '\\', $m);
$m = str_replace('local\\'.Cms::getCurrentTheme().'\\', '', $m);
$this->call('db:seed', [
'--class' => Cms::getPath() . '\\' . $module . '\\Database\\seeds\\' . $class_name
'--class' => $m . '\\Database\\seeds\\' . $class_name
]);
//echo 'hai';
}
}
}
Expand Down

0 comments on commit 44ea8bc

Please sign in to comment.