上传图片 Error, Error In UploadField.php line 422 : Call to a member function exists() on string, Disk [admin] not configured, please add a disk config in `config/filesystems.php` error' #5293
Disk [admin] not configured, please add a disk config in `config/filesystems.php` error'
Error In UploadField.php line 422 :
Call to a member function exists() on string
Right now, my website's supplier/item database items has 5 items, with all the columns and rows ready, except for the image rows and I am unable to add images for each inventory item, during adding new clothing and editing within Laravel Admin
I am able to add, edit and delete values and have them show up on my shop page [ but I get two errors if I try to upload an image ], and save as new supplier/item
'upload' => [
// Disk in `config/filesystem.php`.
'disk' => 'admin',
// Image and file upload path under the disk above.
'directory' => [
'image' =>'images',
'file' =>'files',
]
],
Laravel Version: 8.36.2 PHP Version:7.4.16 Laravel-admin: v1.8.11
Description:
Two errors,
Right now, my website's supplier/item database items has 5 items, with all the columns and rows ready, except for the image rows and I am unable to add images for each inventory item, during adding new clothing and editing within Laravel Admin
I am able to add, edit and delete values and have them show up on my shop page [ but I get two errors if I try to upload an image ], and save as new supplier/item
I've referred to and pasted
Within filesystems.php
Within admin.php,
1) https://github.com/z-song/laravel-admin/issues/1327 2) https://blog.csdn.net/guaiguaiknl/article/details/80332337 3) https://mofuru.net/news/230
2)
Error In UploadField.php line 422 : Call to a member function exists() on string