Add additional layer to allow keys to be dynamically pulled from the .env file rather than thru static text required inside controllers. This is a proper method to handle the keys.
To get the keys dynamically inside controllers use the following.
$STRIPE_KEY= config::get('stripe.stripe_keys.key');
$STRIPE_SECRET = config::get('stripe.stripe_keys.secret');
$STRIPE_WEBHOOK_SECRET=config::get('stripe.stripe_keys.webhook_secret');
use Illuminate\Support\Facades\Config;
will be required to be added on each controller that uses the keys listed above.
Add additional layer to allow keys to be dynamically pulled from the .env file rather than thru static text required inside controllers. This is a proper method to handle the keys.
To get the keys dynamically inside controllers use the following. $STRIPE_KEY= config::get('stripe.stripe_keys.key'); $STRIPE_SECRET = config::get('stripe.stripe_keys.secret'); $STRIPE_WEBHOOK_SECRET=config::get('stripe.stripe_keys.webhook_secret');
use Illuminate\Support\Facades\Config;
will be required to be added on each controller that uses the keys listed above.