thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Newly created BREAD does not generate fields on single table instance. #5610

Closed rdupont55 closed 2 years ago

rdupont55 commented 2 years ago

Laravel version

8.40

PHP version

7.4

Voyager version

1.5

Database

MariaDB 10.3.35

Description

New BREAD creation does not generate any fields, despite fields appearing on creation form.

Steps to reproduce

Expected behavior

A BREAD form with appropriate fields based on data rows table, based on creation form selections.

Screenshots

image

Additional context

I created 2 bread in a row with no issues. On the 3rd try, this table fields appeared as expected on the creation form, but the fields would not save. I checked the data_types and data_rows tables. data_types did show the newly created entry, but no fields appeared in the BREAD edit form.

I even attempted to manually create a new entry in the data_rows table using another existing record entry as the base, but the field did not appear on the edit form, and a submission of the edit form removed the manual entry.

I deleted and recreated the table roughly 5 times during various testing/debugging attempts with no change. No errors appeared upon creation or in my laravel log files.

I created a different table's BREAD with no issue, only this table seemed to be affected.

The following is the migration entry for the table:

Schema::create('magic_arts', function(Blueprint $table) { $table->id(); $table->string('name'); $table->integer('magic_art_type_id'); $table->timestamps(); });

Please let me know if any additional information is needed. I have several tables similarly set up with no issues.

rdupont55 commented 2 years ago

Sorry, I did not realize laravel was expecting magic_art as the table name, rather than magic_arts as I had it in the table. Closing.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.