search

Home  >  Q&A  >  body text

How do I know which table to use after linking to the database?

I don’t understand what these two paragraphs mean. Check whether there is this user in the table, but there is more than one table in my database. How to specify $map = ['username'=>$userName]; $admin = Admin: :get($map);

萨格拉斯萨格拉斯1697 days ago884

reply all(1)I'll reply

  • 萨格拉斯

    萨格拉斯2020-04-11 19:45:53

    hhh Hahaha It turns out that the model name must correspond to the table name! ! ! !

    reply
    0
  • Cancelreply