Closed pedja1982 closed 10 months ago
Hello there! Thanks for opening your first issue on this repo!
Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Backpack communication channels:
backpack-for-laravel
tag;Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.
Thank you!
-- Justin Case The Backpack Robot
Bug report
What I did
I created two models, "Category" and "Product." Products have a category ID in the table. When I generate CRUD (Create, Read, Update, Delete) operations in Devtools, I don't get a select option; instead, I get a regular input where I need to enter the category ID.
What I expected to happen
I expected the CRUD to generate a dropdown/select field instead of an input field.
What happened
CRUD works without a relationship. I manually enter the integer.
What I've already tried to fix it
I tried to find it in the documentation, but such a basic thing does not exist in the documentation. The documentation is quite poor.
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there? YESBackpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: