diff --git a/examples/digitalidentity/app/Http/Controllers/DbsController.php b/examples/digitalidentity/app/Http/Controllers/DbsController.php
new file mode 100644
index 00000000..8c31533d
--- /dev/null
+++ b/examples/digitalidentity/app/Http/Controllers/DbsController.php
@@ -0,0 +1,71 @@
+ [(object)[
+
+ "trust_framework" => "UK_TFIDA",
+ "schemes" => [(object)[
+
+ "label" => "identity-AL-L1",
+ "type" => "DBS",
+ "objective"=> "BASIC"
+ ],
+ [
+ "label" => "identity-AL-M1",
+ "type" => "DBS",
+ "objective" => "BASIC"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ;
+
+ $policy = (new PolicyBuilder())
+ ->withAdvancedIdentityProfileRequirements((object)$advancedIdentityProfileJson)
+ ->build();
+
+ $redirectUri = 'https://host/redirect/';
+
+ $shareSessionRequest = (new ShareSessionRequestBuilder())
+ ->withPolicy($policy)
+ ->withRedirectUri($redirectUri)
+ ->build();
+ $session = $client->createShareSession($shareSessionRequest);
+ return $session->getId();
+ }
+ catch (\Throwable $e) {
+ Log::error($e->getTraceAsString());
+ throw new BadRequestHttpException($e->getMessage());
+ }
+ }
+ public function show(DigitalIdentityClient $client)
+ {
+ try {
+ return view('dbs', [
+ 'title' => 'Digital Identity DBS Check Example',
+ 'sdkId' => $client->id
+ ]);
+ } catch (\Throwable $e) {
+ Log::error($e->getTraceAsString());
+ throw new BadRequestHttpException($e->getMessage());
+ }
+ }
+}
diff --git a/examples/digitalidentity/resources/views/advancedidentity.blade.php b/examples/digitalidentity/resources/views/advancedidentity.blade.php
index 289e9e1e..fbe60828 100644
--- a/examples/digitalidentity/resources/views/advancedidentity.blade.php
+++ b/examples/digitalidentity/resources/views/advancedidentity.blade.php
@@ -84,6 +84,6 @@ function onErrorListener(...data) {
await Yoti.ready()
await onReadyToStart()
}
-
+