Skip to content

Commit

Permalink
Fix config key
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Aug 2, 2018
1 parent 2c3aa88 commit 52685bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mpociot/Versionable/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function versionable()
*/
public function getResponsibleUserAttribute()
{
$model = Config::get("providers.users.model");
$model = Config::get("auth.providers.users.model");
return $model::find($this->user_id);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/VersionableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function testGetResponsibleUserAttribute()

Config::shouldReceive('get')
->once()
->with("providers.users.model")
->with("auth.providers.users.model")
->andReturn('TestVersionableUser');

$user = new TestVersionableUser();
Expand Down

0 comments on commit 52685bb

Please sign in to comment.