Skip to content
Advertisement

Laravel save a input with extra value data

i am trying to save a input value from a time data:

On mi example i am saving the data 3:30 for a calendar form, but to use on the calendar i need save with a “T” before the value like “T3:30”

on mi controller i save the data on the form like this:

what could I do to save the information as I need?

Advertisement

Answer

You can create a new array after validation and then just add the ‘T’ to the starttime of the new array. Like so:

Is this what you are looking for?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement