Laravel 4 has a dateTime() function that helps in creating these columns. But in Schema\Table in Laravel 3, I only see the date() function, which:
public function date($name) { return $this->column(__FUNCTION__, compact('name')); }
It looks like it just creates a DATE column. However, I also see that there is this magic function:
public function __call($method, $parameters) { if (isset(static::$macros[$method])) { array_unshift($parameters, $this); return call_user_func_array(static::$macros[$method], $parameters); } throw new \Exception("Method [$method] does not exist."); }
Is there a way to create a DATETIME column using this function? How can I do it? Could not find this information in the documentation.
source share