diff --git a/app/Models/Host.php b/app/Models/Host.php index 78a1221..b0615a7 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -98,7 +98,7 @@ protected static function boot() static::creating(function ($model) { $model->hour_at = now()->hour; - $model->minute_at = now()->minute_at; + $model->minute_at = now()->minute; if ($model->price !== null) { $model->price = round($model->price, 2); @@ -182,7 +182,8 @@ public function module(): BelongsToAlias // } - public function getPrice() { + public function getPrice(): float + { return $this->managed_price ?? $this->price; }