I am working on a project in Laravel where I am storing some settings in .env file setting like few parameters for testing purpose and few parameters are for live working so I was just checking that is there any way to comment in .env file of Laravel.
Here is an example
/* Test Settings */
ACCESS_KEY=qwsdr
ACCESS_TOKEN=Bgcvfsx
/* Live Settings */
ACCESS_KEY=985AsdefG
ACCCESS_TOKEN=LFP994kL
You use hash commenting:
# Test Settings
ACCESS_KEY=qwsdr
ACCESS_TOKEN=Bgcvfsx
# Live Settings
ACCESS_KEY=985AsdefG
ACCCESS_TOKEN=LFP994kL
Documentation: https://github.com/vlucas/phpdotenv#comments