-
-
Save ammezie/309bf080d2ac45205e6585bb2c9db440 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 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