We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use fields of type "files" in settings.
Using the legacy settings fields the field is saved in the database with the setting identifier {$label}_{$file.id}, instead of simply $label.
{$label}_{$file.id}
$label
Using the new system it seems it's not saved in the database at all. Steps below described using the new system:
site-settings.blade.php
<x-twill::files name="teste" label="Teste" />
Assigned file is persisted and the field indicates the selected file
Form field is empty
Twill version: 3.4.1 Laravel version: 9 PHP version: 8.0.30 Database engine: MySQL 8
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Can't use fields of type "files" in settings.
Using the legacy settings fields the field is saved in the database with the setting identifier
{$label}_{$file.id}
, instead of simply$label
.Using the new system it seems it's not saved in the database at all. Steps below described using the new system:
Steps to reproduce
site-settings.blade.php
Expected result
Assigned file is persisted and the field indicates the selected file
Actual result
Form field is empty
Versions
Twill version: 3.4.1
Laravel version: 9
PHP version: 8.0.30
Database engine: MySQL 8
The text was updated successfully, but these errors were encountered: