ForestAdmin / forest-laravel

🌱 Laravel Liana for Forest Admin. This repo is no longer maintained. Please use laravel-forestadmin instead: https://github.com/ForestAdmin/laravel-forestadmin
GNU General Public License v3.0
4 stars 0 forks source link

belongsTo with foreign key not named 'id' #42

Closed sfriquet closed 7 years ago

sfriquet commented 7 years ago

I have a model who has a belongsTo relationship with a model whose primary key is not called 'id' and I believe this is what's preventing it from loading.

'id' is harcoded here https://github.com/ForestAdmin/forest-laravel/blob/devel/src/Http/Services/ResourcesGetter.php#L76 and I guess that's the issue.

arnaudbesnier commented 7 years ago

Hey @sfriquet, thanks for the report! The liana is still pretty young, I'll try to fix this issue for our next week sprint.

🌲🌲🌲

arnaudbesnier commented 7 years ago

Fix released in the latest liana version 0.1.3.

🌲🌲🌲

arnaudbesnier commented 2 years ago

Hi @sfriquet,

The brand new Laravel agent for Forest Admin is available here: https://github.com/ForestAdmin/laravel-forestadmin

As we now have a team of dedicated developers for this new Laravel agent, be sure Forest Admin will provide a much better Laravel support experience compared to the one you had in the past for v1.

Forest Admin also evolved a lot in 4 years as an internal tool platform, don’t hesitate to give it another try, you should not be disappointed 🌲🌲🌲

Best Regards.