Skip to content

Commit 16ac9c5

Browse files
committed
formatting
1 parent 332e29a commit 16ac9c5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/Illuminate/Database/MySqlConnection.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ public function insert($query, $bindings = [], $sequence = null)
5050
});
5151
}
5252

53-
public function getLastInsertId()
54-
{
55-
return $this->lastInsertId;
56-
}
57-
5853
/**
5954
* Escape a binary value for safe SQL embedding.
6055
*
@@ -79,6 +74,16 @@ protected function isUniqueConstraintError(Exception $exception)
7974
return boolval(preg_match('#Integrity constraint violation: 1062#i', $exception->getMessage()));
8075
}
8176

77+
/**
78+
* Get the connection's last insert ID.
79+
*
80+
* @return string|int|null
81+
*/
82+
public function getLastInsertId()
83+
{
84+
return $this->lastInsertId;
85+
}
86+
8287
/**
8388
* Determine if the connected database is a MariaDB database.
8489
*

0 commit comments

Comments
 (0)