You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpreturn [
/* * The property id of which you want to display data. */'property_id' => env('ANALYTICS_PROPERTY_ID'),
/* * Path to the client secret json file. Take a look at the README of this package * to learn how to get this file. You can also pass the credentials as an array * instead of a file path. */'service_account_credentials_json' => storage_path('app/analytics/service-account-credentials.json'),
/* * The amount of minutes the Google API responses will be cached. * If you set this to zero, the responses won't be cached at all. */'cache_lifetime_in_minutes' => 60 * 24,
/* * Here you may configure the "store" that the underlying Google_Client will * use to store it's data. You may also add extra parameters that will * be passed on setCacheConfig (see docs for google-api-php-client). * * Optional parameters: "lifetime", "prefix" */'cache' => [
'store' => 'file',
],
];
The file exists and is readable. It works via tinker, but fails during web requests under Octane/FrankenPHP.
How can I make sure the credentials path is correctly resolved under Octane and FrankenPHP?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Spatie Laravel Analytics with Laravel Octane + FrankenPHP.
It works fine with
php artisan serve
, but fails under Octane with this error:Default Config:
The file exists and is readable. It works via
tinker
, but fails during web requests under Octane/FrankenPHP.How can I make sure the credentials path is correctly resolved under Octane and FrankenPHP?
Beta Was this translation helpful? Give feedback.
All reactions