Well,you need to modify your ActivationRepository class.
Change this
private function regenerateToken($user)
{
$token = $this->getToken();
$this->db->table($table)->where('user_id', $user->id)->update([
'token' => $token,
'created_at' => new Carbon()
]);
return $token;
}
To
private function regenerateToken($user)
{
$token = $this->getToken();
// $this->table refers to 'user_activations',btw you can pass table name manually although not recommended.
$this->db->table($this->table)->where('user_id', $user->id)->update([
'token' => $token,
'created_at' => new Carbon()
]);
return $token;
}
Hope this helps.