The simple solution for solving every hard problem is to understand exactly what are you doing, it takes time but answers always!
The solution works for me is:
valet stop-->> you see: Valet services have been stopped.
valet uninstall -->> you see: Valet has been uninstalled.
Then make sure the
~/.composer/vendor/bin directory is in your system's "PATH".
composer global require laravel/valet
You may want to restart your computer. Take a deep breath :)
brew update--> it takes time ......
Now is the turn to uninstall php and install a new version or switch between php versions.
for uninstall you can follow this link. But it is not necessary to uninstall the php version you have now. Since you have another option B in laravel valet to switch between the php version. Although If you follow the above link to remove php entirely, there is no problem at all. Now I assume you want to uninstall php. In the uninstallation process you will reach the following command:
---- > be careful !brew cleanup
Now you are going to install a new version of php. Be careful for the following command!:
brew install php
So you can install the lower versions of php by:
brew install firstname.lastname@example.org--> it takes time ......
brew services start email@example.com
valet install--> you see: Valet installed successfully!
It is done! and your laravel valet works fine.
Instead of uninstall all php version entirely you can install the version you want and switch/link the valet to that version simply by:
valet use firstname.lastname@example.org
Thank you for reading! If you enjoyed this article:
Clap it ! Share it! Follow Me in Medium!
Panjeh — Medium
Read writing from Panjeh on Medium. Physicists PhD, Self-taught web developer #Learning, #laravelphp #Vuejs. Every day…
Also I’d like to hear your opinion on this article. If you have any doubt, question or suggestion please leave a comment below.
Have a very wonderful day!
Previous Stories You will Love:
Laravel call named routes in console internally php artisan command
How to call Laravel routes internally php artisan command
Telegram Bot Packages libraries Examples in Laravel, PHP, Node.js, Python, Java, Ruby, Swift, C++
If you want to learn more about Telegram bots, This Introduction to Bots would be a good guide to start.
Laravel Auth::routes() Email verification Reset password Authentication Registration routes
Auth::routes() is a helper class that helps you generate all the routes required for user authentication
Laravel eloquent model increment with or without updating timestamps
Problem: You may need to increment a field in a record of a table (Laravel Model) and do not want update the updated_at…
Laravel validation username no space allowed alpha_dash or regex custom rule
If you want to restrict the username in Laravel to only accept letters, numbers, dashes and underscores and not space…
Laravel delete queued jobs using redis horizon artisan command
The question is how to delete all jobs which are queued in Laravel when you are using redis as the Queue driver.
Laravel detector mobile browser name version platform device robot crawler user language
Laravel define global constants Config php file
If you look at the main Laravel directory you can find these subdirectories:
Laravel session flash message include html tag link href
In Laravel you may insert a or strong tags into the flash message deliver to the session.