$entries * @property-read int|null $entries_count * @property-read \App\Models\Genre $genre * @property-read \App\Models\Platform $platform * @method static \Illuminate\Database\Eloquent\Builder|Game newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Game newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Game query() * @method static \Illuminate\Database\Eloquent\Builder|Game whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Game whereGenreId($value) * @method static \Illuminate\Database\Eloquent\Builder|Game whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Game whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Game wherePlatformId($value) * @method static \Illuminate\Database\Eloquent\Builder|Game whereSlug($value) * @method static \Illuminate\Database\Eloquent\Builder|Game whereUpdatedAt($value) * @mixin \Eloquent */ class Game extends Model { /** * @var string[] */ protected $fillable = ['name', 'slug', 'platform_id', 'genre_id' ]; public function platform(): BelongsTo { return $this->belongsTo(Platform::class); } public function genre(): BelongsTo { return $this->belongsTo(Genre::class); } public function entries(): Game|\Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(Entry::class); } }