Kind of confused about how to capture values as an when they are saved to DB. This is laravel 5.4
In the app\Http\Controllers\Auth, I want to capture the input values that are being saved to the DB.
protected function create(array $data)
{
Log::info('Adding the User '); // This is getting logged.
return User::create([
'name' => $data['name'],
'username' => $data['username'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
$name = $data['name'];
Log::info('Showing user profile for user: '.$name); // This is not getting logged.
}
The reason why I want to capture is because I want to send a curl request with the captured input data to a third party application as soon as a user is created.
Thank you.
via JMeter Dude