We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb865f commit eb827e7Copy full SHA for eb827e7
src/Cmgmyr/Messenger/Traits/Messagable.php
@@ -51,10 +51,8 @@ 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 (getenv('APP_ENV') != 'testing') {
55
- if (!str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
56
- $participants = $participants->all();
57
- }
+ if (getenv('APP_ENV') == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
+ $participants = $participants->all();
58
}
59
60
if ($participants) {
0 commit comments