We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cb7174 commit e55d2e4Copy full SHA for e55d2e4
src/Cmgmyr/Messenger/Traits/Messagable.php
@@ -51,7 +51,7 @@ public function threadsWithNewMessages()
51
* I don't want to include as a dependency for this package...it's overkill. So let's
52
* exclude this check in the testing environment.
53
*/
54
- 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')) {
55
$participants = $participants->all();
56
}
57
0 commit comments