Skip to content

Commit

Permalink
Fix tryToGuessRelatedResource() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Sep 23, 2023
1 parent 97d6f04 commit fbbbb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generators/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract protected function handleDefaultColumn(Column $column): ViewComponent;

abstract protected function generateSchema(array $exceptColumns, array $overwriteColumns, array $enumDictionary): array;

public static function tryToGuessRelatedResource(Model $relatedRecord): Resource
public static function tryToGuessRelatedResource(Model $relatedRecord): string
{
foreach (Filament::getResources() as $resource) {
if ($relatedRecord instanceof ($resource::getModel())) {
Expand Down

0 comments on commit fbbbb79

Please sign in to comment.