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

模板-传值错误 #38

Open
zhubing361 opened this issue Oct 14, 2020 · 0 comments
Open

模板-传值错误 #38

zhubing361 opened this issue Oct 14, 2020 · 0 comments

Comments

@zhubing361
Copy link

zhubing361 commented Oct 14, 2020

环境:
"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 版本问题吗?

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

1 participant