Giter Site home page Giter Site logo

Comments (6)

aocneanu avatar aocneanu commented on July 17, 2024 2

closed with laravel-enso/formbuilder#lastcommit:)

from documentation.

aocneanu avatar aocneanu commented on July 17, 2024 1

lol, that's a first :P

from documentation.

aocneanu avatar aocneanu commented on July 17, 2024

You can follow the example from person form. The birthday is casted as date (carbon).

Note the you may use a format option in the field config that will precede the format provided in config/enso/forms.php

from documentation.

jlsjonas avatar jlsjonas commented on July 17, 2024

Person form does not set a date by default though;
I temporarily solved it by doing a ->toDateString() but this was not aware of the config (which wasn't present in my case, it's addition was missing from CHANGELOG.md)
updated to $myCarbonDate->format(config('enso.forms.dateFormat')); though the documentation implies I should've just passed the Carbon instance directly. I'd suggest either updating docs to clarify, or update form->value to parse the date according to dateFormat itself (which is probably the better option as the format can be overridden per field, which wouldn't be a DRY operation if changed using the current method)

from documentation.

aocneanu avatar aocneanu commented on July 17, 2024

Aaah, lol got it now. It's a but in the form package.

from documentation.

jlsjonas avatar jlsjonas commented on July 17, 2024

Didn't realize it was a bug 😅

from documentation.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.