Skip to content

Instantly share code, notes, and snippets.

@DarkGhostHunter
Last active May 22, 2018 18:11
Show Gist options
  • Save DarkGhostHunter/646b899a770d79d434672e7b63f094f8 to your computer and use it in GitHub Desktop.
Save DarkGhostHunter/646b899a770d79d434672e7b63f094f8 to your computer and use it in GitHub Desktop.
56413a512688-RegisterController
<?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