panakour / google-analytics

Get data from google analytics (API v4) using PHP
MIT License
26 stars 10 forks source link

Undefined index: credentials_json_file #3

Closed j3dyy closed 5 years ago

j3dyy commented 5 years ago

hello i craeted folder in storage/app/google-analytics/ and put inside .json file named service-account-credentials.json . but laravel return error : Undefined index: credentials_json_file

panakour commented 5 years ago

Hi @j3dyy did you add the analytics.php file within your config directory?

You can do it with the command: php artisan vendor:publish --provider="Panakour\Analytics\GoogleAnalyticsServiceProvider"

Or manually from the source

j3dyy commented 5 years ago

yes @panakour thank you for your response. i solved this problem , causes on spatie/analytics , both has same config file analytic.php