Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPlaceholder和laravel-admin 1.7.8 不兼容 #17

Open
liues1992 opened this issue Nov 11, 2019 · 2 comments
Open

getPlaceholder和laravel-admin 1.7.8 不兼容 #17

liues1992 opened this issue Nov 11, 2019 · 2 comments

Comments

@liues1992
Copy link

Encore\Admin\Form\Field:中的getPlaceHolder定义

    public function getPlaceholder(): string
    {
        return $this->placeholder ?: trans('admin.input').' '.$this->label;
    }

要求返回值是string
Encore\ChinaDistpicker\Distpicker 中定义的
protected $placeholder= []; 为数组,使用时报错。

@Jackfinal
Copy link

public function getPlaceholder(): string 把string去掉即可

@z-perfe
Copy link

z-perfe commented Dec 11, 2019

我修改了Distpicker.php文件,将 $placeholder = '',
__construct 中将其 json_encode, 在render() 中 再次 json_decode 即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants