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 3ed8a36 commit e7dd50f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Commands/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ public function handle()
//print_r($files);
foreach ($files as $file) {
$class_name = preg_replace('/\..+$/', '', $file);
$m = ltrim($module, '/');
$m = str_replace('/', '\\', $m);
$this->call('db:seed', [
'--class' => $m . '\\Database\\seeds\\' . $class_name
'--class' => Cms::getPath() . '\\' . $module . '\\Database\\seeds\\' . $class_name
]);
//echo 'hai';
}
Expand Down

0 comments on commit e7dd50f

Please sign in to comment.