Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sonanaren's avatar

Eloquent join not working for very big column name in Lumen 5.2

Eloquent join not working for very big column name 'LimitedEnglishProficiencyDescriptorId' in Lumen 5.2, is this a bug or am i missing something.

Example join

public function proficiency() { return $this->hasOne('App\Models\ODS\LimitedEnglishProficiencyDescriptor', 'LimitedEnglishProficiencyDescriptorId','LimitedEnglishProficiencyDescriptorId') }

$students = Student::with('proficiency')->get();

My workaround was to use alias, just wondering to find the reason

0 likes
0 replies

Please or to participate in this conversation.