Php 如何修复aloha/twilio警告

Php 如何修复aloha/twilio警告,php,laravel-5,twilio,Php,Laravel 5,Twilio,在我的Laravel5.7应用程序(PHP7.2.10-0ubuntu0.18.04.1,开发模式)中,我 已安装插件 使用它我得到了一个错误: ErrorException (E_WARNING) Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP) 没有发短信。我想我可以在本地服务器上关闭E_警告,但我的应用程序仍

在我的Laravel5.7应用程序(PHP7.2.10-0ubuntu0.18.04.1,开发模式)中,我 已安装插件

使用它我得到了一个错误:

ErrorException (E_WARNING)
Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP)
没有发短信。我想我可以在本地服务器上关闭E_警告,但我的应用程序仍在开发中 我想保留它

在这里哪一个可以决定

修改:

我有:

$php-m [PHP模块] bz2 日历 核心 ctype 卷曲 日期

我的phpinfo还显示已安装和已启用:

在我的包管理器中,我看到:

我的服务器上是否未安装或激活某些内容


谢谢

似乎没有安装或启用CURL扩展。要查看它是否已启用,您可以从CLI运行
php-m
,并在
[php Modules]

下进行检查,请查看我的配置中的修改块。似乎您可能有错误,请尝试重新安装模块以确保:
sudo apt purge php curl php7.2-curl&&sudo apt install php7.2-curl
ErrorException (E_WARNING)
Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP)