Skip to content

Commit

Permalink
refactor: default user model to auth.providers.user.model
Browse files Browse the repository at this point in the history
Added PHP 8.* support.
  • Loading branch information
syntaxlexx committed Jan 14, 2022
1 parent 0423d3c commit afa168e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function getParticipantFromUser($userId)
*/
public function activateAllParticipants()
{
$participants = $this->participants()->withTrashed()->get();
$participants = $this->participants()->onlyTrashed()->get();
foreach ($participants as $participant) {
$participant->restore();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/EloquentThreadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function it_should_get_all_thread_participants()
$this->assertCount(4, $participantIds);
$this->assertEquals(999, end($participantIds));

$this->assertInternalType('array', $participantIds);
$this->assertIsArray('array', $participantIds);
}

/** @test */
Expand Down

0 comments on commit afa168e

Please sign in to comment.