public function init($table, $name) { if ($this->definition('ai') === true) { return $table->increments($name); } return $table->integer($name); }