Updated_at and created_at are empty or zeros

[norebro_social_networks icon_layout=”boxed”]

If you use DB class and thinking that it will fill updated_at and created_at then you are wrong it wont . It will only fill updated_at and created_at if you use Eloquent models . So next time make sure to instantiate Eloquent model if you need timestamp columns

$post = new Post();
$post->name=Str::slug("this will fill timestamps columns");
$post->save();
https://www.kodeinfo.com
Comments to: Updated_at and created_at are empty or zeros

    Your email address will not be published. Required fields are marked *

    Attach images - Only PNG, JPG, JPEG and GIF are supported.

    Stay connected

    Categories

    Newsletter

    Tags

    Recent Comments

      Recent Posts

      Recent Comments

        Archives

        Categories

        Meta