Owl\Repositories\Fluent\AbstractFluent::insert PHP Метод

insert() публичный Метод

Insert a record.
public insert ( array $params, $table = null ) : integer
$params array array :key(column name) => value
$table string :table name(defalut: getTableName())
Результат integer :inserted record's id
    public function insert(array $params, $table = null)
    {
        if (is_null($table)) {
            $table = $this->getTableName();
        }
        $params = $this->setTimestamps($params);
        $id = \DB::table($table)->insertGetId($params);
        return $id;
    }