0
我正在努力與Laravel揹包圖像列類型。該documentation給出了一個例子:揹包管理員:圖片列類型
[
'name' => 'profile_image', // The db column name
'label' => "Profile image", // Table column heading
'type' => 'image',
// optional width/height if 25px is not ok with you
// 'height' => '30px',
// 'width' => '30px',
]
但我不知道我應該把它。我猜想,並把它放在$this->crud->setColumns
和列已添加,但不能得到它的工作。
我猜這些應該是模型中的增變器,但不知道如何編寫它。