forked from eatvio/eatvio-infra
static analizys update
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user