Created
October 23, 2016 09:02
-
-
Save nishinoshake/ee97b48aee9e340265c6714ff195a5a2 to your computer and use it in GitHub Desktop.
Laravelで最後に挿入したIDを取得する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PDO | |
// http://php.net/manual/ja/pdo.lastinsertid.php | |
$movieId = DB::getPdo()->lastInsertId(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment