@ksparkar
I tried \Stripe\Stripe::setApiKey(config('stripe.stripe.secret')); but not getting the value. How the config/stripe.php file is linked to controller.
config() is a global helper so you don't need to worry about linking it. I think you have some other issue, maybe try to output some other config value as a test ex. config('app.name')
@snapey $value = config('stripe.stripe.secret'); is not working. I was thinking we need to "use \App\config", something like this to get the value , but I am not sure how to connect controller and config.
@ksparkar and @snapey I am using laravel 4.2. Is it because of version it is not rendering any value with the above mentioned code. How we can do in 4.2 and even $value =config('app.name'); is not working.