Convention table names (with underscore)

后端 未结 2 1671
北恋
北恋 2021-02-05 08:53

What is the correctly table name of this table in Laravel 3/4?

Structure
image_projects (id, project_id, image, ext, size, c

2条回答
  •  自闭症患者
    2021-02-05 09:27

    Current Laravel version 4.2 table name convention works OK in that way:

    Table name: image_projects

    File name: ImageProject.php

    Class name: ImageProject

    The camel-case class name forced me with an exception to use table name underscores.

提交回复
热议问题