File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ class CookiesServiceProvider extends ServiceProvider
111
111
// Register all Analytics cookies at once using one single shorthand method:
112
112
Cookies::analytics()
113
113
->google(
114
- id: env('GOOGLE_ANALYTICS_ID ')
115
- anonymizeIp: env('GOOGLE_ANALYTICS_ANONYMIZE_IP ')
114
+ id: config('cookieconsent.google_analytics.id ')
115
+ anonymizeIp: config('cookieconsent.google_analytics.anonymize_ip ')
116
116
);
117
117
118
118
// Register custom cookies under the pre-existing "optional" category:
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ protected function makeConsentCookie(): CookieComponent
160
160
value: json_encode ($ this ->preferences ),
161
161
minutes: config ('cookieconsent.cookie.duration ' ),
162
162
domain: config ('cookieconsent.cookie.domain ' ),
163
- secure: (env ( ' APP_ENV ' ) == 'local ' ) ? false : true
163
+ secure: (config ( ' app.env ' ) == 'local ' ) ? false : true
164
164
);
165
165
}
166
166
You can’t perform that action at this time.
0 commit comments