PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Can't insert date to the created_at column

emil-ev

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

emil-ev

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))); }