DB::table (ok)

$current_timestamp = Carbon::now()->toDateTimeString();
  $userinfo          = $event->user;
  $saveHistory       = DB::table('login_history')->insert(
    array(
      'name'       => $userinfo->name,
      'email'      => $userinfo->email,
      'created_at' => $current_timestamp,
      'updated_at' => $current_timestamp,
    )
  );

Last updated