Monthly Archives: June 2021

Mac OSX – Laravel with Valet keep using wrong PHP version (8) instead of 7.4

Recently I have interesting problem with Valet using wrong PHP version on my Laravel application, trying to switch it from terminal not fix issue and stating it’s already done even including force relink.

valet use php@7.4 –force
Unlinking current version: php@7.4
Linking new version: php@7.4
Updating PHP configuration…
Restarting php@7.4…
Restarting nginx…
Valet is now using php@7.4.

Solution for this problem was using following command

rm ~/.config/valet/valet.sock

valet use php@7.4 –force

After that Valet use correct PHP version in my application.

[Laravel 8 / Horizon] – After publishing horizon assets /horizon dashboard show white or empty page without any errors

Solution – regenerate view cache (clear existing one):

php artisan view:clear


Warning: Undefined array key 0 in /www/wwwroot/electronicnoobblog.com/wp-content/plugins/wp-google-analytics-scripts/wp-google-analytics-scripts.php on line 602