Skip to content

Instantly share code, notes, and snippets.

@khrlimam
Created April 25, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khrlimam/a7a5cd98be459875d81f0e3bda5388b7 to your computer and use it in GitHub Desktop.
Save khrlimam/a7a5cd98be459875d81f0e3bda5388b7 to your computer and use it in GitHub Desktop.
<?php
/**
* Retrieve a user by their unique identifier.
*
* @param mixed $identifier
* @return Authenticatable|null
*/
public function retrieveById($identifier)
{
return session($identifier, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment