latlong
latlong copied to clipboard
模板-传值错误
环境: "require": { "php": "^7.1.3", "encore/laravel-admin": "^1.8", "fideloper/proxy": "^4.0", "laravel-admin-ext/latlong": "^1.2", "laravel/framework": "5.8.*", "laravel/tinker": "^1.0", "overtrue/laravel-lang": "~3.0", "symfony/translation": "4.3.8" }, 包代码: /** * {@inheritdoc} * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|string */ public function render() { $this->script = Extension::getProvider()->applyScript($this->id);
$variables = [
'height' => $this->height,
'provider' => Extension::config('default'),
];
return parent::render()->with($variables);
}
可用代码: /** * {@inheritdoc} * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|string */ public function render() { $this->script = Extension::getProvider()->applyScript($this->id);
$variables = [
'height' => $this->height,
'provider' => Extension::config('default'),
];
$this->addVariables($variables);
return parent::render();
}
是我的laravel 或者 laravel-admin 版本问题吗?