Create websites with TailwindCSS
Create a static website
The Markdown editor of the future
Start building the next great SaaS
Create web designs with AI
Connect with fellow developers and gain access to tools that will help you build a profitable SaaS 🚀
Tony Lea
Founder / Developer
Bobby Iliev
Co-Founder / DevOps
Boyan Iliev
Developer / DevOps
Have a question or need help
Learn about sponsorships
The boring legal stuff
Sep 19th, 2017 04:46 PM
Hi, I need a help. Sorry for my bad English! I want to add backdate function to the add form which is insert certain date to the database. (Creating backdate post) But when I check the database the NULL value inserted.
Thanks
Sep 19th, 2017 06:34 PM
Problem solved in the voyager\src\Http\Controllers\Controller.php add after case 'timestamp':
if ($request->isMethod('POST')) { $content = gmdate('Y-m-d H:i:s', strtotime($request->input($row->field))); }
Sign up using 𝕏 or GitHub ✌️ Login using 𝕏, GitHub, or Email 🤙
New to DevDojo?Sign up now
Already Have an Account?Click here to Login