public function hasTimestamps(string $createdAttribute = null, string $updatedAttribute = null): Model
    {
        $this->main['timestamps']        = true;
        $this->main['timestamp_created'] = $createdAttribute ?: 'created_at';
        $this->main['timestamp_updated'] = $updatedAttribute ?: 'updated_at';

        return $this;
    }
public function hasTimestamps(string $createdAttribute = null, string $updatedAttribute = null): Model
    {
        $this->main['timestamps']        = true;
        $this->main['timestamp_created'] = $createdAttribute ?: 'created_at';
        $this->main['timestamp_updated'] = $updatedAttribute ?: 'updated_at';

        return $this;
    }
public function hasTimestamps ( string $ createdAttribute = null , string $ updatedAttribute = null ) : Model { $ this -> main [ 'timestamps' ] = true ; $ this -> main [ 'timestamp_created' ] = $ createdAttribute ? : 'created_at' ; $ this -> main [ 'timestamp_updated' ] = $ updatedAttribute ? : 'updated_at' ; return $ this ; }
Model has timestamp columns

@param string $createdAttribute  defaults to 'created_at'
@param string $updatedAttribute  defaults to 'updated_at'
@return Model|$this
Model has timestamp columns