KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Timestamp not getting update when new record is created by using resources #2444

Open Anjali opened this topic on on Nov 19, 2021 - 1 comments

Anjali commented on Nov 19, 2021

Hello, I have added user module with timestamp using resources in laravel. When i try to add new new user, created_at field is not getting updated automatically.

Below is the code used to create field in laravel using koolreport.

 DateTime::create("created_at")
                ->showOnCreate(0)
                ->baseFormat("Y-m-d H:i:s")->displayFormat("Y-m-d H:i:s")
                ->sortable(true),
KoolReport commented on Nov 19, 2021

Please update to Dashboard 3.2.4 and then you do:

DateTime::create("created_at")
    ->showOnCreate(true)
    ->inputWidget(DateTimePicker::create()->defaultValue(date("Y-m-d H:i:s"))
    ->sortable(true)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Laravel