ipunkt/laravel-analytics

Analytic Config Per Enviroment

Closed this issue · 2 comments

Thanks for your time developing this Adapter, great work!

I may be wrong, but it seems that I can't provide a analytic config file per enviroment.
I've only tested this in Laravel 4.2.

I've setup the following below...

app/config/packages/ipunkt/laravel-analytics/macdev/analytics.php

Which I thought would overwrite app/config/packages/ipunkt/laravel-analytics/analytics.php, but it doesn't seem too.

Any think this can happen in the future, or am I just doing it wrong.

you can divide your config by environment by inserting paths under the package config:

app/config/packages/ipunkt/laravel-analytics/local/analytics.php
app/config/packages/ipunkt/laravel-analytics/staging/analytics.php
app/config/packages/ipunkt/laravel-analytics/production/analytics.php

if you have a "global" package config: app/config/packages/ipunkt/laravel-analytics/analytics.php this is overridden by your environment-config.

does that solve your issue?

rokde commented

We close that issue by unanswered solution.