diff --git a/src/Cmgmyr/Messenger/Traits/Messagable.php b/src/Cmgmyr/Messenger/Traits/Messagable.php index 711054c..3292dc7 100644 --- a/src/Cmgmyr/Messenger/Traits/Messagable.php +++ b/src/Cmgmyr/Messenger/Traits/Messagable.php @@ -51,7 +51,7 @@ public function threadsWithNewMessages() * I don't want to include as a dependency for this package...it's overkill. So let's * exclude this check in the testing environment. */ - if ($_ENV['APP_ENV'] == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) { + if (getenv('APP_ENV') == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) { $participants = $participants->all(); }