diff --git a/examples/relational/Storage/SessionStorage.php b/examples/relational/Storage/SessionStorage.php index 9c02b18f..37e1759a 100644 --- a/examples/relational/Storage/SessionStorage.php +++ b/examples/relational/Storage/SessionStorage.php @@ -87,7 +87,7 @@ class SessionStorage extends Adapter implements SessionInterface public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = null) { $id = Capsule::table('oauth_sessions') - ->insert([ + ->insertGetId([ 'owner_type' => $ownerType, 'owner_id' => $ownerId, 'client_id' => $clientId