File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 39
39
| @see https://imdhemy.com/laravel-iap-docs/docs/credentials/google-play
40
40
|
41
41
*/
42
- 'google_application_credentials ' => env ('GOOGLE_APPLICATION_CREDENTIALS ' , null ),
42
+ 'google_application_credentials ' => base_path ( env ('GOOGLE_APPLICATION_CREDENTIALS ' ) ),
43
43
44
44
/*
45
45
|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ private function registerConfig(): void
117
117
$ this ->mergeConfigFrom (self ::CONFIG_PATH , self ::CONFIG_KEY );
118
118
119
119
$ googleCredentials = config (self ::CONFIG_KEY . '.google_application_credentials ' );
120
- if ($ googleCredentials !== null ) {
120
+
121
+ if ($ googleCredentials !== null && ! is_dir ($ googleCredentials )) {
121
122
if (! file_exists ($ googleCredentials )) {
122
123
throw new RuntimeException ("Google Application Credentials file not found at $ googleCredentials " );
123
124
}
You can’t perform that action at this time.
0 commit comments