SHARE
TWEET

Untitled

a guest Jun 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function getSession() {
  2.   $session = Auth::user(); // or session('yourSessionKey');
  3.   return response()->json($session, 200);
  4. }
  5.      
  6. Route::get('check/auth', 'ControllerPath@getSession');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top