mercredi 26 avril 2017

Laravel 5.2: How to autofill the creation date of the form

I'm struggling with a question that i'm asking myself. I have a form in laravel that posts a new row with data on the index file. Right now I have a couple of set values that I insert into the database. One of those values is "date", I am asking myself: How can I from the moment that I press on the 'save' button automatically fill the created_at field in my database.

Would love to get some help with this



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire