Published 2 months ago by afoysal
I am getting error like below
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'skills.applicant_skill_id' in 'where clause' (SQL: select * fromskills
But I have no
applicant_skill_id column in
skills table. I have a
id column in
skills table. What can I do in this regard ?
You'd override them in your applicant_skill() relationship. See the docs where it shows you for each type of relationship (hasOne, hasMany, etc): https://laravel.com/docs/5.5/eloquent-relationships
I'd urge you to stick to conventions though. It's a lot more straightforward and less confusing, especially when you come back and look at your code a year from now.