Error when upgrading laravel 5.3 to 5.4

2

When upgrading to laravel 5.4 the following error occurred:

Does anyone have any ideas? I can not even access the main route. I followed all the steps of the upgrade but no idea why this happens, I'm upgrading from version 5.1, 5.2, 5.3 and now version 5.4, but I can not get much information about this error.

    
asked by Susje 27.11.2018 в 14:29
source

2 answers

1

You have to go to the file MethodValidator.php , line 19, and you have to make sure that the function in_array() has two valid parameters.

The first is what you want to search, and the second, which now seems to be null , is the array in which you want to search.

    
answered by 27.11.2018 в 14:55
1

I already managed to solve it, apparently it was necessary to clean the routes:

php artisan route:clear

In addition to leaving the base files as Kernel, php, app.php and others as it is indicating the required update. Suggestion for those who update

    
answered by 27.11.2018 в 15:02