Open kkkreset opened 2 years ago
I updated form,grid and show classes as updated here https://github.com/z-song/laravel-admin/pull/5611
我在此处更新了表单、网格和显示类#5611
How do I update, or replace to your Git?
I manual updated, just open #5611 click Update Grid.php open in your local project src/Grid.php
Carefully Add + lines and remove lines starts with - (Minus Sign)
I hope it will help you.
Repeat the process for other 3 files
Description:
Error using attribute for form field.
Steps To Reproduce:
` $form->image('pic', __('pic'))->required()->name(function($file) { return md5('product_pic'.time().rand(0, 10000)).'.'.$file->guessExtension(); })->setElementClass(md5(microtime(true)));
ERRIR: ` Call to undefined method Illuminate\Database\Eloquent\Casts\Attribute::addEagerConstraints()
`