Laravel trying to access array offset on value of type null
Error type: trying to access array offset on value of type null
Solution 1:
If you encounter such error in Laravel you need to only run this command.
php composer.phar update
or
composer update
That will fix the issue!
Solution 2:
This issue may due to that fact you are running old Laravel versions in a system using recent PHP versions. In such case, you can also do the following.
Change the PHP version in Composer.json to 7.4.* and and then run:
php composer.phar update
or
composer update