File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use App \Models \User ;
6
6
use Illuminate \Http \Client \HttpClientException ;
7
- use Illuminate \Http \Client \Response ;
8
7
9
8
final class Anystack
10
9
{
@@ -27,26 +26,10 @@ public static function findContact(string $contactUuid): ?User
27
26
->first ();
28
27
}
29
28
30
- public static function findContactOrFail (string $ contactUuid ): ? User
29
+ public static function findContactOrFail (string $ contactUuid ): User
31
30
{
32
31
return User::query ()
33
32
->where ('anystack_contact_id ' , $ contactUuid )
34
33
->firstOrFail ();
35
34
}
36
-
37
- /**
38
- * Retrieve a license from AnyStack.
39
- *
40
- * @param string $productId The AnyStack product ID
41
- * @param string $licenseId The AnyStack license ID
42
- * @return Response The API response
43
- *
44
- * @throws \Illuminate\Http\Client\RequestException If the request fails
45
- */
46
- public function getLicense (string $ productId , string $ licenseId ): Response
47
- {
48
- return $ this ->client ()
49
- ->get ("https://api.anystack.sh/v1/products/ {$ productId }/licenses/ {$ licenseId }" )
50
- ->throw ();
51
- }
52
35
}
You can’t perform that action at this time.
0 commit comments