Kavyajain's avatar

Multiple input field referring to the same column name

Hello folks, i want to add multiple Input field, that is multiple addField with the same attribute. So, roomBanner_image is an array and i want 4 seperate input fields which refers to one column name roomBanner_image.. Please Help

$this->crud->addColumn([
            'name' => 'roomBanner_image',
            'label' => 'Room Banner Image',
       'type' => 'árray'
        ]);

$this->crud->addField([   
            'name' => 'roomBanner_image',
            'label' => 'Room Banner Image',
            'type' => 'upload',
            'upload' => true,
        ], 'both');

        $this->crud->addField([   
            'name' => 'roomBanner_image',
            'label' => 'Room Banner Image',
            'type' => 'upload',
            'upload' => true,
        ], 'both');
0 likes
2 replies
Snapey's avatar

As we don't know what $this->crud->addField() is, its impossible to say.

Kavyajain's avatar

I am using laravel backpack to addField when i create a row.

Please or to participate in this conversation.