Undefined array key "disk" in setupListOperation for new CRUD entity #1415
Replies: 1 comment
-
|
The error Undefined array key "disk" in your Backpack CRUD List operation is caused by the fact that the Your current code for the List operation is: CRUD::column('image')->type('upload')->label('Изображение');To fix the error, you need to specify the CRUD::column('image')
->type('upload')
->label('Изображение')
->disk('public'); // or whatever disk you use for uploadsThis is a known requirement for Backpack's upload column, as seen in the related pull request that addresses the "Undefined index: disk" error in the upload column view. Summary: If you continue to have issues, double-check that your disk is correctly configured in ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Getting Started Videos|7. List Operation |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have problems to make CRUD for slider.
I made migration create_sliders_table.php
then I run
php artisan backpack:crud sliderin my SliderCrudController I have following code
when I go to https://myproject.dev/admin/slider page I have error Undefined array key "disk"
Beta Was this translation helpful? Give feedback.
All reactions