*/ use HasFactory; protected $fillable = [ 'label', 'unit', 'count', ]; protected function casts(): array { return [ 'count' => 'integer', ]; } public static function current(): ?self { return self::orderBy('id')->first(); } }