I'm developing laravel proect with git to test my proect to server, my .env is set to local setting for database setting. when i push my laravel proect with git (with .env file), i must resetting my .env at my server.
Can i make a setting that can detect when it's at sserver it use server setting, when i artisan at local, it's using local setting?
so i don't need to change my .env anymore, just need set it at the first time, and it can used forever, i don't need to change the setting again at server
Could i?