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 44
55use App \Models \User ;
66use Illuminate \Http \Client \HttpClientException ;
7- use Illuminate \Http \Client \Response ;
87
98final class Anystack
109{
@@ -27,26 +26,10 @@ public static function findContact(string $contactUuid): ?User
2726 ->first ();
2827 }
2928
30- public static function findContactOrFail (string $ contactUuid ): ? User
29+ public static function findContactOrFail (string $ contactUuid ): User
3130 {
3231 return User::query ()
3332 ->where ('anystack_contact_id ' , $ contactUuid )
3433 ->firstOrFail ();
3534 }
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- }
5235}
You can’t perform that action at this time.
0 commit comments