-
-
Save ammezie/641a0b29d3b9a94c8158202e517a3357 to your computer and use it in GitHub Desktop.
This file contains 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
// app/Http/Controllers/ChatController.php | |
public function generateToken(Request $request) | |
{ | |
return response()->json([ | |
'token' => $this->client->createToken($request->user_id) | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment