CREATE TABLE prefix_configuration
(
ID int UNSIGNED AUTO_INCREMENT
PRIMARY KEY,
SCOPE varchar(255) NOT NULL,
NAME varchar(255) NOT NULL,
VALUE longtext NOT NULL,
created_at timestamp NULL,
updated_at timestamp NULL
)
COLLATE = utf8_unicode_ci;
CREATE INDEX scope
ON prefix_configuration (SCOPE);
Then lead to the capitalized annotations:
/**
* @method static Builder|Configuration whereNAME($value)
* @method static Builder|Configuration whereSCOPE($value)
*/
class Configuration extends Model {}
When you use those in en Eloquent where() funtion:
Versions:
Description:
Example schema
Then lead to the capitalized annotations:
When you use those in en Eloquent where() funtion:
Leads to SQL with
s_c_o_p_e
andn_a_m_e
as supposed column names.Proposed fix
Make lower case snake_case first, then to CapitalCase.