Guest User

Untitled

a guest
May 27th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. <?php
  2.  
  3. $user = User::whereToken($token)->first();
  4.  
  5. if (!$user) {
  6. return ['message' => 'Sorry, no user found with that token.'];
  7. }
  8.  
  9. return $user;
Add Comment
Please, Sign In to add comment