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 joinChannel(Request $request)
{
$username = explode('@', $request->email)[0];
$this->channel->addMembers([$username]);
return redirect('/home');
}
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.