$games * @property-read int|null $games_count * @method static \Illuminate\Database\Eloquent\Builder|Genre newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Genre newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Genre query() * @method static \Illuminate\Database\Eloquent\Builder|Genre whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Genre whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Genre whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Genre whereSlug($value) * @method static \Illuminate\Database\Eloquent\Builder|Genre whereUpdatedAt($value) * @mixin \Eloquent */ class Genre extends Model { protected $fillable = [ 'name', 'slug' ]; public function games(): HasMany { return $this->hasMany(Game::class); } }