make static-analyse code

This commit is contained in:
2024-01-15 01:05:10 +03:00
parent 57244b63be
commit bc2c8df9af
35 changed files with 221 additions and 182 deletions

View File

@@ -121,7 +121,7 @@ class BlogPost extends Model implements Viewable
return $query->setEagerLoads([]);
}
public function scopeContainsTag(Builder $query, string $tagString): Builder
public function scopeContainsTag(Builder $query, string $tagString): MorphToMany
{
$tagId = Str::of($tagString)->split('/-/')->first();