If the laravel model does not define a name, it will change the model name to a plural number?
黄舟
黄舟 2017-05-16 16:50:05
0
1
354

If the name of the table is not defined in laravel's model, it will automatically query like this. For example, the Student model will search for students. The university model will search for universities. They all become plural automatically. What is strange is that he still understands the grammar. Some add s and some remove y. Add ies

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
刘奇

It seems like this is the rule. How to do it depends on the source code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template