You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing valet while using the laravel/framework v5.2 works fine. But immediately errors pop up when doing valet start.
PHP Fatal error: Cannot redeclare info() (previously declared in /Users/nateritter/.composer/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:454) in /Users/nateritter/.composer/vendor/laravel/valet/cli/includes/helpers.php on line 21
So, I thought and try to go wrap a conditional into the /valet/cli/includes/helpers.php to check if the function has been declared. But when doing that and then running any commands which utilize the info() method, I get the following:
[ReflectionException]
Class log does not exist
The text was updated successfully, but these errors were encountered:
What's the reason for having laravel/framework installed globally?
One alternative is to clone laravel/valet somewhere else on your machine, run composer install locally for that folder, and then symlink valet from that folder to /usr/local/bin/valet manually, and remove the version you have installed globally.
The way Composer mixes all your global packages is sort of a nightmare sometimes 😔
Here's my current setup:
Installing valet while using the laravel/framework v5.2 works fine. But immediately errors pop up when doing
valet start
.PHP Fatal error: Cannot redeclare info() (previously declared in /Users/nateritter/.composer/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:454) in /Users/nateritter/.composer/vendor/laravel/valet/cli/includes/helpers.php on line 21
So, I thought and try to go wrap a conditional into the /valet/cli/includes/helpers.php to check if the function has been declared. But when doing that and then running any commands which utilize the
info()
method, I get the following:The text was updated successfully, but these errors were encountered: