trait DateColumn (View source)

Methods

addDatetime(string $column, array $attribute = [])

Add datetime column

addDate(string $column, array $attribute = [])

Add date column

addTime(string $column, array $attribute = [])

Add time column

addYear(string $column, array $attribute = [])

Add year column

addTimestamp(string $column, array $attribute = [])

Add timestamp column

addTimestamps()

Add default timestamps

Details

SQLGenerator addDatetime(string $column, array $attribute = [])

Add datetime column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addDate(string $column, array $attribute = [])

Add date column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTime(string $column, array $attribute = [])

Add time column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addYear(string $column, array $attribute = [])

Add year column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTimestamp(string $column, array $attribute = [])

Add timestamp column

Parameters

string $column
array $attribute

Return Value

SQLGenerator

SQLGenerator addTimestamps()

Add default timestamps

Return Value

SQLGenerator