'int', 'calories' => 'float', 'carbohydrates' => 'float', 'cholesterol' => 'float', 'fat' => 'float', 'protein' => 'float', 'sodium' => 'float', ]; /** * Get all supported days and metadata. * * Each entry has the following keys: * - value: Day value (used for bitwise operations). * - label: Human-readable name for the day. */ public static function days(): Collection { return new Collection([ [ 'value' => 1, 'label' => 'monday', ], [ 'value' => 2, 'label' => 'tuesday', ], [ 'value' => 4, 'label' => 'wednesday', ], [ 'value' => 8, 'label' => 'thursday', ], [ 'value' => 16, 'label' => 'friday', ], [ 'value' => 32, 'label' => 'saturday', ], [ 'value' => 64, 'label' => 'sunday', ], ]); } /** * Get the User this goal belongs to. */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }