Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 6, 2024
1 parent 332e29a commit 16ac9c5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Illuminate/Database/MySqlConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ public function insert($query, $bindings = [], $sequence = null)
});
}

public function getLastInsertId()
{
return $this->lastInsertId;
}

/**
* Escape a binary value for safe SQL embedding.
*
Expand All @@ -79,6 +74,16 @@ protected function isUniqueConstraintError(Exception $exception)
return boolval(preg_match('#Integrity constraint violation: 1062#i', $exception->getMessage()));
}

/**
* Get the connection's last insert ID.
*
* @return string|int|null
*/
public function getLastInsertId()
{
return $this->lastInsertId;
}

/**
* Determine if the connected database is a MariaDB database.
*
Expand Down

0 comments on commit 16ac9c5

Please sign in to comment.