static analizys update

This commit is contained in:
Anatoliy Poloz
2024-01-15 15:10:57 +03:00
parent 30e4c21a47
commit 09a8900690
69 changed files with 638 additions and 575 deletions

View File

@@ -23,7 +23,6 @@ use Illuminate\Support\Str;
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $title
*
* @property-read \App\Models\User $author
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\BlogPostComment> $comments
* @property-read int|null $comments_count
@@ -121,7 +120,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();