Back

If Testing environmnet in Laravel

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

//If testing environment then execute this .. if (env('APP_ENV', '') == 'testing') { // Here you condition }