Skip to content

Commit

Permalink
fix current device signature
Browse files Browse the repository at this point in the history
  • Loading branch information
omar95-pero committed Dec 13, 2023
1 parent b6677e1 commit 6c5bbac
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<?php


if (!function_exists('getCurrentDeviceSignature')) {
function getCurrentDeviceSignature()
{
return session()->isStarted() ?
session()->get('X-DEVICE-SIGNATURE') :
request()->headers->get('X-DEVICE-SIGNATURE');
}
}

if (!function_exists('getCurrentDeviceSignature')) {
function getCurrentDeviceSignature()
{
Expand All @@ -19,6 +9,7 @@ function getCurrentDeviceSignature()
request()->headers->get('X-DEVICE-SIGNATURE'),
"\s"
);

return !empty($signature) ? $signature : null;
}
}
}

0 comments on commit 6c5bbac

Please sign in to comment.