Skip to content
New issue

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 remove files in hasMany relation (not set null from database table) #5841

Open
santksharma opened this issue Nov 28, 2023 · 0 comments

Comments

@santksharma
Copy link

   $form->hasMany('translations', function (Form\NestedForm $form) {
            $languages = Language::where('status', 1)->pluck('name', 'id');
            $form->select('language_id', __('Language'))->options($languages)->default('1')->creationRules('required');
            $form->text('title', __('Title'))->Rules(['required'])->placeholder('Section Title');
             $form->file('audio_male', __('Male Audio'))->Rules(['nullable'])->placeholder('Male Audio')->removable();
             $form->file('audio_female', __('Female Audio'))->Rules(['nullable'])->placeholder('Female Audio')->removable();
            $form->summernote('verse', __('Verse'))->Rules(['nullable'])->placeholder('Verse');
            $form->summernote('verse_translation', __('Verse Translation'))->Rules(['nullable'])->placeholder('Verse Translation');
            $form->summernote('word_defination', __('Word Definition'))->Rules(['nullable'])->placeholder('Word Definition');
            $form->summernote('summary', __('Summary'))->creationRules('nullable')->placeholder('Summary');
            $form->summernote('description', __('Description'))->creationRules('nullable')->placeholder('Description');
        });

it can not set null audio_male or audio_female from database table on remavable
Help me ? please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant