【发布时间】:2019-06-05 04:15:04
【问题描述】:
通过在我的 phpstorm 上运行“php artisan serve”,我在EncryptionServiceProvider.php 第 16 行收到此错误“ErrorException”:
使用未定义的常量 MCRYPT_RIJNDAEL_128 - 在浏览器上假定为“MCRYPT_RIJNDAEL_128”。
我尝试重新安装 mcrypt,但没有成功。我也没有找到任何解决这个问题的方法。
php artisan serve
PHP Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/optergy/safetybeat-dashboard-live/dashboard/config/app.php on line 83
Laravel development server started on http://localhost:8000/
这个错误阻止我正常运行项目。
【问题讨论】:
-
这与 Swift 编程语言有什么关系?
-
Mcrypt 已弃用