|Player newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Player newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Player query() * @method static \Illuminate\Database\Eloquent\Builder|Player whereAccountId($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereAlignment($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereBankValue($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereChangeName($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereDir($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereDx($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereExitMapIndex($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereExitX($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereExitY($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereExp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereGold($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseHp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseHpDroptime($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseLevel($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseRiding($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseSkillPoint($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHorseStamina($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereHt($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereIp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereIq($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereJob($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereLastPlay($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereLevel($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereLevelStep($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereMapIndex($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereMp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Player wherePartBase($value) * @method static \Illuminate\Database\Eloquent\Builder|Player wherePartHair($value) * @method static \Illuminate\Database\Eloquent\Builder|Player wherePartMain($value) * @method static \Illuminate\Database\Eloquent\Builder|Player wherePartSash($value) * @method static \Illuminate\Database\Eloquent\Builder|Player wherePlaytime($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereQuickslot($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereRandomHp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereRandomSp($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereSkillGroup($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereSkillLevel($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereSkillPoint($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereSt($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereStamina($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereStatPoint($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereStatResetCount($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereSubSkillPoint($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereVoice($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereX($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereY($value) * @method static \Illuminate\Database\Eloquent\Builder|Player whereZ($value) * @mixin \Eloquent */ class Player extends Model { /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * The table associated with the model. * * @var string */ protected $table = 'player'; /** * The primary key for the model. * * @var string */ protected $primaryKey = 'id'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'job' => CharacterJobEnum::class, ]; /** * Get the account that owns the player. */ public function account(): BelongsTo { return $this->belongsTo(Account::class, 'account_id', 'id'); } /** * Get the index of this player's account */ public function index(): BelongsTo { return $this->belongsTo(PlayerIndex::class, 'account_id', 'id'); } /** * Get this player's ranking */ public function highscore(): HasOne { return $this->hasOne(HighscoreCache::class, 'name', 'name'); } }