Skip to content

Commit afa168e

Browse files
committed
refactor: default user model to auth.providers.user.model
Added PHP 8.* support.
1 parent 0423d3c commit afa168e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44

5-
'user_model' => App\User::class,
5+
'user_model' => config('auth.providers.users.model'),
66

77
'message_model' => Lexx\ChatMessenger\Models\Message::class,
88

src/Models/Thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function getParticipantFromUser($userId)
328328
*/
329329
public function activateAllParticipants()
330330
{
331-
$participants = $this->participants()->withTrashed()->get();
331+
$participants = $this->participants()->onlyTrashed()->get();
332332
foreach ($participants as $participant) {
333333
$participant->restore();
334334
}

tests/EloquentThreadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function it_should_get_all_thread_participants()
124124
$this->assertCount(4, $participantIds);
125125
$this->assertEquals(999, end($participantIds));
126126

127-
$this->assertInternalType('array', $participantIds);
127+
$this->assertIsArray('array', $participantIds);
128128
}
129129

130130
/** @test */

0 commit comments

Comments
 (0)