|PlayerIndex newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex newQuery() * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex query() * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex whereEmpire($value) * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex wherePid1($value) * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex wherePid2($value) * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex wherePid3($value) * @method static \Illuminate\Database\Eloquent\Builder|PlayerIndex wherePid4($value) * @mixin \Eloquent */ class PlayerIndex 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_index'; /** * 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 = [ 'empire' => EmpireEnum::class, ]; /** * Get the account that owns the player index. */ public function account(): BelongsTo { return $this->belongsTo(Account::class, 'id', 'id'); } }