Skip to content

Commit

Permalink
Merge pull request #7 from asgraf/patch-1
Browse files Browse the repository at this point in the history
Skip `Table.php` files
  • Loading branch information
zunnu committed Jan 24, 2023
2 parents 0c1a58f + 90be3d9 commit e46e8af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ private function getAssociations()
// clean file name
$model = str_replace('.php', '', $model);
$model = str_replace('Table', '', $model);
if ($model === '') {
continue;
}
$modelList[$model] = ['plugin' => $pluginName];
$associationsArray[$pluginName][$model] = $this->_associations($model, $pluginName);
}
Expand Down

0 comments on commit e46e8af

Please sign in to comment.