Last active
May 22, 2018 18:11
-
-
Save DarkGhostHunter/646b899a770d79d434672e7b63f094f8 to your computer and use it in GitHub Desktop.
56413a512688-RegisterController
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
<?php | |
namespace App\Http\Controllers | |
use App\User; | |
use App\Jobs\ProcessNewUser; | |
use App\Http\Controllers\Controller; | |
class RegisterController extends Controller { | |
// ... | |
public function registerUser(Request $request) | |
{ | |
// ... | |
$user->save(); | |
/* Passes the registration process. Now we process the new user */ | |
ProcessNewUser::dispatch($user); | |
return view('registered'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment