search

Home  >  Q&A  >  body text

The "Add successfully" prompt pops up, but it is not actually added to the database.

添加.png

Fan searFan sear2477 days ago1372

reply all(3)I'll reply

  • 2018-07-27 12:02:33

    In the add method, use $user=UserModel::create($data); instead of add

    reply
    0
  • 傲娇鬼

    if ($result === true) { $user= UserModel::create($data); if ($user === null) { $status = 0; $message = 'Add failed~~'; } } After changing this, it still doesn't work.

    傲娇鬼 · 2019-12-12 18:54:36
  • 轻微强迫症

    轻微强迫症2018-05-26 13:37:30

    Mine is the same, has the poster solved it? Can you share it

    reply
    0
  • Cancelreply