Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Laravel Valet have a un-park/unlink for all valet parked projects on a system?

Working on a computer with several old Laravel projects. It looks like they are all parked with Valet.

Valet is not working on new projects, I think because Valet is over extended.

Is there a way to 'mass' un-park and unlink all valet connections or do I have to uninstall and reinstall Valet?

Going through every folder individual and manually un-parking is unrealistic.

like image 618
seamus Avatar asked Apr 10 '18 14:04

seamus


3 Answers

Laravel Valet has forget command that removes parked directories to valet park list.

cd parked_directory
valet forget
like image 159
Jim Avatar answered Sep 19 '22 23:09

Jim


While Laravel Valet doesn't have a command to forget all the registered working directories, you can manually do it by editing the ~/.valet/config.json file and remove the registered directories from the paths array like the following:

{
    "domain": "dev",
    "paths": [
        "/Users/whoami/.valet/Sites",
        "/Users/whoami/Sites/Test"
    ]
}

Alternatively, you can manually go to each of the registered Valet directories and forget them by running valet forget. However, this would be time-consuming especially when you have bulk registered directories with Valet.

like image 34
Md Mazedul Islam Khan Avatar answered Sep 18 '22 23:09

Md Mazedul Islam Khan


valet links

will display all the links of the parked sites

valet unlink SITENAME
like image 37
Mateen Ray Avatar answered Sep 19 '22 23:09

Mateen Ray