Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement