EDIT: much better answer here https://laracasts.com/discuss/channels/laravel/attach-user-id-to-profile-table
from you AuthController try this.
The trait just adds methods that do the default stuff, you can freely override them
//this will let you override the post user trait function but still access it
use AuthenticatesAndRegistersUsers{ postRegister as register;};
public function postRegister(Request $request)
{
//Let the default function run first
$response = $this->register($request);
$user = $this->auth->user();
//do anything you need here with the users data
return $response;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community