Skip to content

Commit

Permalink
Enable usage with Laravel 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rydurham committed Jan 20, 2016
1 parent 5666b59 commit 33fcdde
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
],
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.1.*@dev",
"illuminate/contracts": "5.1.*@dev",
"illuminate/support": "5.2.*@dev",
"illuminate/contracts": "5.2.*@dev",
"cartalyst/sentry": "2.1.*",
"vinkla/hashids": "~2.0"
},
"require-dev": {
"orchestra/testbench": "3.1.x@dev",
"orchestra/testbench": "3.2.*",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0"
},
Expand Down
10 changes: 10 additions & 0 deletions src/Sentinel/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ public function getAuthIdentifier()
return $this->getKey();
}

/**
* Get the name of the unique identifier for the user.
*
* @return string
*/
public function getAuthIdentifierName()
{
return $this->getKey();
}

/**
* Get the password for the user.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/SentinelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function getEnvironmentSetUp($app)
'database' => __DIR__ . '/_data/db.sqlite',
'prefix' => '',
]);
$app['config']->set('mail.pretend', true);
$app['config']->set('mail.driver', 'log');
$app['config']->set('mail.from', ['from' => 'noreply@example.com', 'name' => null]);

// Prepare the sqlite database
Expand Down

0 comments on commit 33fcdde

Please sign in to comment.