Last active
May 23, 2018 01:47
-
-
Save dhrrgn/a9a86cd1ef70ef1aa08e46c2a7a7c800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user = User::whereToken($token)->first(); | |
if (!$user) { | |
return ['message' => 'Sorry, no user found with that token.']; | |
} | |
return $user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment