gpt4 book ai didi

php - "Call to undefined method Intervention\Image\Image::make()"

转载 作者:行者123 更新时间:2023-12-02 03:21:00 28 4
gpt4 key购买 nike

当我在本地主机中使用 Laravel Intervention 图像时,它工作得很好,但是当我在我的控制面板中上传实时服务器时,它就无法工作了......

enter image description here

最佳答案

在配置/app.php

在 $providers 数组中添加此包的服务提供商。

Intervention\Image\ImageServiceProvider::class

将这个包的外观添加到 $aliases 数组。

'Image' => Intervention\Image\Facades\Image::class

根据此链接 http://image.intervention.io/getting_started/installation

或者在你的 Controller 的头部,在安装之后添加:-

use Intervention\Image\ImageManagerStatic as Image;

关于php - "Call to undefined method Intervention\Image\Image::make()",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54809742/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com