Skip to content

Instantly share code, notes, and snippets.

@ammezie ammezie/ChatController.php Secret
Created Nov 13, 2019

Embed
What would you like to do?
// 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
You can’t perform that action at this time.