Laravel valet It works

后端 未结 3 994
一整个雨季
一整个雨季 2021-02-13 22:40

I\'m trying to install Laravel valet but I keep getting (when I visit domain.dev):

It works! 

I already tried a lot. For example:<

3条回答
  •  无人共我
    2021-02-13 22:59

    So many different combinations of what to do here

    Here is what worked for me.

    Turn off other local Apache altogether

    sudo apachectl -k stop
    
    sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
    

    Remove the Valet directory altogether

    rm -r ~/.valet
    

    Removed Valet via composer globally

    composer global remove laravel/valet
    

    Re-install via composer

    composer global require laravel/valet
    

    Install Valet

    valet install
    

    Go to Folder to Add directories

    cd ~/Sites/
    

    Then add projects to park

    valet park
    

    Change Valet domains to something else to stop urls forcing to https://

    valet domain app
    

    Change directory into the project folder

    cd ./laravel-project/
    

    Then open current project

    valet open
    

    The browser should open to http://laravel-project.app

提交回复
热议问题