skip to Main Content

I am working on the application which is built on the laravel 5.4 framework. I have installed the latest version of PHP. which is
PHP Version 7.4.5
Actually I would like to know does PHP 7.4.5 supports laravel 5.4 app if no then why? and how can I downgrade the PHP version?

Also I am getting the error in php logs files ( [2020-05-15 12:37:08] local.ERROR:

ErrorException: Trying to access array offset on value of type null in
C:xampphtdocscarehalo_miniappHelpers.php:392 )

Also, you can check out the code in the given screenshot Helpers.php:392 lines

2

Answers


  1. appHelpers.php this sounds like something part of the app you have and not related to Laravel. My best guess is that Laravel won’t have any problems running on 7.4, but the same does not apply for the code written in the app. And of course, best thing to do would be to upgrade your Laravel version to at least 6 regardless of working or not.

    Login or Signup to reply.
  2. You can fix your Error by changing line 392 to:

    if(empty($admin) || ($admin->token != Session::get('token'))

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search