Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
version updated
  • Loading branch information
shunmugam ramesh authored and shunmugam ramesh committed Mar 4, 2021
1 parent 2d4a16a commit 683e692
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@
<tr><td>5.8</td><td>>=2.2</td></tr>
<tr><td>6</td><td>>=2.3</td></tr>
<tr><td>7</td><td>>=2.3</td></tr>
<tr><td>8</td><td>>=2.4</td></tr>
</tbody>
</table>
<h1>Change Logs</h1>
<h3>Version v2.4</h3>
<ol>
<li>Data table version update</li>
<li>Seed command bug fix</li>
</ol>
<h3>Version v2.2</h3>
<ol>
<li>Data table version update</li>
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"files" : ["src/Helper.php"],
"minimum-stability": "stable",
"require": {
"laravelcollective/html": "~6.0",
"yajra/laravel-datatables-oracle": "^9.10",
"unisharp/laravel-filemanager": "^2.1.0"
"laravelcollective/html": "~6.2.1",
"yajra/laravel-datatables-oracle": "^9.15.2",
"unisharp/laravel-filemanager": "^2.2.0"
},
"require-dev": {

Expand Down
6 changes: 3 additions & 3 deletions src/Commands/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ public function handle()
{
if($class) {
$this->call('db:seed', [
'--class' => Cms::getPath() . '\\' . $module . 'Database\\seeds\\'.$class
'--class' => Cms::getPath() . '\\' . $module . '\\Database\\seeds\\'.$class
]);
}
else
{
$module_path = base_path().'/' . Cms::getPath() . '/' . Cms::getModulesPath() . '/'.Cms::getCurrentTheme().'/' . $module . '/Database/seeds';
$files = $this->getAllFileInFolder($module_path);
foreach ($files as $file) {
echo $class_name = preg_replace('/\..+$/', '', $file);
$class_name = preg_replace('/\..+$/', '', $file);
$this->call('db:seed', [
'--class' => Cms::getPath() . '\\' . $module . '/Database/seeds/'.$class_name
'--class' => Cms::getPath() . '\\' . $module . '\\Database\\seeds\\'.$class_name
]);
}

Expand Down

0 comments on commit 683e692

Please sign in to comment.