Function mcrypt_get_iv_size() is deprecated on Laravel 4

前端 未结 1 1824
挽巷
挽巷 2021-02-05 12:58

I am in L4, here is my app.php



        
相关标签:
1条回答
  • 2021-02-05 13:21

    You can use PHP 7 instead of PHP 7.1. Or you can upgrade to Laravel 5 if it's possible. If not, add this to the beginning of the config/app.php:

    error_reporting(E_ALL ^ E_DEPRECATED);
    

    It looks dirty, but I'm afraid there is no a better way to avoid the error at the moment.

    0 讨论(0)
提交回复
热议问题