*/ use HasFactory; public $timestamps = false; protected $primaryKey = null; public $incrementing = false; protected function casts(): array { return [ 'fuel_type' => FuelType::class, 'price_effective_at' => 'datetime', 'price_reported_at' => 'datetime', 'recorded_at' => 'datetime', ]; } public function station(): BelongsTo { return $this->belongsTo(Station::class, 'station_id', 'node_id'); } public function priceInPence(): float { return $this->price_pence / 100; } }