Skip to content

Commit

Permalink
Skip Table.php files
Browse files Browse the repository at this point in the history
  • Loading branch information
asgraf committed Jan 11, 2023
1 parent 53b6d63 commit 90be3d9
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 90be3d9

Please sign in to comment.