Answers for "set timestamp default 0 in laravel"

PHP
0

timestamp false in laravel

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    public $timestamps = false;

    //
}
Posted by: Guest on September-15-2021
3

laravel current timestamp

use Carbon\Carbon;
$current_date_time = Carbon::now()->toDateTimeString(); // Produces something like "2019-03-11 12:25:00"
Posted by: Guest on March-03-2021

Code answers related to "set timestamp default 0 in laravel"

Browse Popular Code Answers by Language