A fork of Laravel Valet to work in Linux.

Last update: May 23, 2022

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.

Valet Linux configures your system to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.

In other words, a blazing fast Laravel development environment that uses roughly 7mb of RAM. Valet Linux isn't a complete replacement for Vagrant or Homestead, but provides a great alternative if you want flexible basics, prefer extreme speed, or are working on a machine with a limited amount of RAM.

Official Documentation

Documentation for Valet can be found on the Valet Linux website.

License

Laravel Valet is open-sourced software licensed under the MIT license

GitHub

https://github.com/cpriego/valet-linux
Comments
  • 1. Ubuntu 17.04 DNS issues after installing

    Using Ubuntu 17.04. After installing Valet I seem to be having intermittent DNS issues including some common sites (facebook, etc...) not always resolving correctly. I believe this may be related to dnsmasq. Is this a known issue?

    Reviewed by Meverhart at 2017-01-17 21:03
  • 2. Can't access the site when offline

    Hello,

    I have a problem, when offline I can't access the site, but when I connect it to wifi and then disconnect it, it can. I use linux ubuntu 16.04.

    image

    Reviewed by hrmshandy at 2017-07-28 15:39
  • 3. Uninstalling valet

    We need a clear path or docs on how to get back to the state pre-valet. I just upgraded my Ubuntu from 17.04 to 17.10 and have absolutely no idea on how to get back network connectivity. The uninstall script just breaks (can't find php-fpm configuration) but I happen to know that it would tell me anyway that I need to manually restore my network connectivity.

    With previous versions of valet I was easily able to undo the changes. Now I'm really not sure what valet has done and how to undo it.

    Please read the documentation on uninstalling.

    Only if it doesn't help, comment here with the specific steps you've taken and at what point they failed.

    Reviewed by dakira at 2017-10-22 13:49
  • 4. installation issue

    I run this command

    sudo composer global require cpriego/valet-linux
    

    And this is what i got:

    Changed current directory to /home/anas/.composer
    Using version ^2.0 for cpriego/valet-linux
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - cpriego/valet-linux v2.0.1 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.10 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.11 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.2 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.3 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.4 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.5 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.6 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.7 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.8 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - cpriego/valet-linux v2.0.9 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
        - nategood/httpful 0.2.9 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.8 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.7 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.6 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.20 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.19 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.17 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.16 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.13 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.11 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.10 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - nategood/httpful 0.2.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
        - Installation request for cpriego/valet-linux ^2.0 -> satisfiable by cpriego/valet-linux[v2.0.1, v2.0.10, v2.0.11, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
    
      To enable extensions, verify that they are enabled in those .ini files:
        - /etc/php/7.0/cli/php.ini
        - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
        - /etc/php/7.0/cli/conf.d/10-opcache.ini
        - /etc/php/7.0/cli/conf.d/10-pdo.ini
        - /etc/php/7.0/cli/conf.d/15-xml.ini
        - /etc/php/7.0/cli/conf.d/20-calendar.ini
        - /etc/php/7.0/cli/conf.d/20-ctype.ini
        - /etc/php/7.0/cli/conf.d/20-dom.ini
        - /etc/php/7.0/cli/conf.d/20-exif.ini
        - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
        - /etc/php/7.0/cli/conf.d/20-ftp.ini
        - /etc/php/7.0/cli/conf.d/20-gd.ini
        - /etc/php/7.0/cli/conf.d/20-gettext.ini
        - /etc/php/7.0/cli/conf.d/20-iconv.ini
        - /etc/php/7.0/cli/conf.d/20-intl.ini
        - /etc/php/7.0/cli/conf.d/20-json.ini
        - /etc/php/7.0/cli/conf.d/20-mbstring.ini
        - /etc/php/7.0/cli/conf.d/20-mcrypt.ini
        - /etc/php/7.0/cli/conf.d/20-mysqli.ini
        - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
        - /etc/php/7.0/cli/conf.d/20-phar.ini
        - /etc/php/7.0/cli/conf.d/20-posix.ini
        - /etc/php/7.0/cli/conf.d/20-readline.ini
        - /etc/php/7.0/cli/conf.d/20-shmop.ini
        - /etc/php/7.0/cli/conf.d/20-simplexml.ini
        - /etc/php/7.0/cli/conf.d/20-sockets.ini
        - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
        - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
        - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
        - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
        - /etc/php/7.0/cli/conf.d/20-wddx.ini
        - /etc/php/7.0/cli/conf.d/20-xmlreader.ini
        - /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
        - /etc/php/7.0/cli/conf.d/20-xsl.ini
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    
    Installation failed, reverting ./composer.json to its original content.
    
    
    Reviewed by anasred at 2017-04-08 07:27
  • 5. Php-fpm is not running...

    I'm getting this message

    Php-fpm is not running...
    Nginx is not running...
    

    when I run valet status.

    dnsmasq is also not running, so valet is not working.


    El problema que tengo en Antergos y Arch es el de este mismo issue, pero con las instrucciones que me proporcionaste para fedora (descomentando la linea Defaults env_keep +="HOME") la instalación continua perfectamente, pero a la hora abrir cualquier dominio .dev Chrome me tira el error de ERR ICANN NAME COLLISION lo que quiere decir que los DNS no están funcionando, al igual que php-fpm y nginx no están corriendo. Lo que se me hace algo raro es que la primera vez que instalé Antergos de manera limpia la instalación de valet funcionó sin ningún problema y se ejecutó como debería ser, al reinstalar Antergos (igual limpio, eliminando y formateando particiones) comenzó este error. Instalé Arch para comprobar que no sucediera el mismo error, pero no, paso exactamente lo mismo, php-fpm, nginx y dnsmasq se instalan al ejecutar valet install via pacman pero no se ejecutan.

    Reviewed by geradrum at 2017-03-30 23:58
  • 6. DNS issues after Valet install

    Hi guys, after install Valet Linux on my Ubuntu 18.04 machine I'm constantly getting a DNS problem every time I boot it up. For DNS to work, I have to go to the terminal and reinstall Valet by uninstalling it first. Once I do that everything will work fine until I restart the machine. Then I have to go through this process once again. Valet was working perfectly on 16.04 and I believe it started acting up on 18.04 after I tried to change the domain name. I am not sure though.

    Reviewed by takdw at 2018-06-07 06:52
  • 7. Valet not found 404-Not Found

    Hello, guys last night I turned off my laptop without turning off the valet service. Now I'm facing a problem. Whenever I try to hit blog.dev or the URL given with it I'm getting a 404 error

    image

    image

    Please tell me what is it that is going wrong. I even pinged blog.dev to see if it was hitting 127.0.0.1 and yeah it's hitting it

    image

    Reviewed by Gardezi1 at 2017-05-02 06:56
  • 8. SSL certificate invalid

    I am having trouble to get HTTPS working on my site:

    WSL UBUNTU PHP 7.2.10-0ubuntu0.18.04.1 Chrome Version 77.0.3865.120 (Official Build) (64-bit) Valet v2.1.10

    I also tried FF and Edge with same result.

    In Edge I saved the SSL certificate in a file and then tried to import this file to chrome. This gives me a success message, but the certificate is not showing in chrome.

    I did secure my site: $ valet secured mysite.test mysite.test is secured.

    Reviewed by mhsolutions at 2019-10-19 06:53
  • 9. valet share 502 error

    I'm getting 502 bad gateway when I try to display the publicly accessible URL.

    screenshot from 2017-08-28 00-18-33 screenshot from 2017-08-28 00-18-37

    I tried to run valet unsecure blog && valet share but it didn't work neither.

    I'm just exploring features of Valet and this one seems really exciting - any help to get this running would be really appreciated.

    Reviewed by jankulma at 2017-08-27 22:23
  • 10. Valet home directory is inside /root

    I'm trying to install valet but I've got and exception

    [RuntimeException]
    Valet home directory is inside /root
    
    install [--ignore-selinux]
    

    I installed antergos 1 week ago and it was working, no problems but then I reinstalled antergos 3 days ago and same error, I didn't change anything in the system or installation. Now I just installed Arch and same error.

    Reviewed by geradrum at 2017-03-12 05:09
  • 11. [DomainException] Crouton

    Hello,

    I am trying to get valet running on ubuntu using crouton.

    But whenever i run valet install or almost any valet commands, it returns this;

    [DomainException]                  
      Unable to determine service name.
    

    I saw that someone else had the same problem in a closed issue. But i have everything up to date and still cant get past this

    Reviewed by jonasedemalm at 2017-05-16 19:17
  • 12. Exclude entire loopback range from DNS file

    Hi, With my Ubuntu 20.04 install, 127.0.0.53 was included in one of the resolv files valet-dns scrapes when looking for nameservers.

    I believe this IP, like 127.0.0.1, should be excluded to prevent slow DNS lookups due to an infinite loop lookup (until a timeout occurs).

    This change will exclude the entire loopback range, instead of just 127.0.0.1.

    Thanks for considering this pull.

    Cheers

    Reviewed by Corey-Evans at 2022-05-19 22:52
  • 13. Bug: Slow boot when doesn't have internet connection

    Basic info

    | Distro (Name and version) | PHP Version | Valet version | | ------------------------- | ----------- | ------------- | | Fedora 36 | 8.1.4 | 2.2.2 |

    • [x] I've checked the issue queue and could not find anything similar to my bug.
    • [x] I'm on the latest version of valet-linux (valet --version): Valet v2.2.2
    • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

    What is the problem? systemd-networkd-wait-online gets stuck with multiple interfaces, if the pc don't have internet

    What was supposed to happen? valet-dns.service force start the daemon systemd-networkd-wait-online

    How to reproduce this? boot without any connection to internet (cable or wifi)

    What is the solution? a workaround is disable valet-dns.service at boot

    Reviewed by cognitus at 2022-05-10 15:46
  • 14. Bug: missing `--secure` flag on `valet link`

    Basic info

    Versions are not applicable; all hosts, distros, etc.

    What is the problem? Missing upstream --secure flag on valet link command.

    What was supposed to happen? To also secure the site without running additional valet secure command.

    What actually happened? Error of The "--secure" option does not exist.

    How to reproduce this? Just run valet link --secure

    What is the solution? Implement the --secure flag

    Sources I am using a tool to create Bedrock (WordPress fork) sites. It runs valet link --secure but since valet-linux is missing this flag, the command fails. Related open issue on mentioned tool: https://github.com/roots/trellis-cli/issues/186

    Reviewed by codepuncher at 2022-05-08 12:00
  • 15. Bug: Lost network connection after running valet install

    Basic info

    | Distro (Name and version) | PHP Version | Valet version | | ------------------------- | ----------- | ------------- | | Ex: Ubuntu 22.04 | 8.1.2 | Latest |

    • [x]I've checked the issue queue and could not find anything similar to my bug.
    • [x] I'm on the latest version of valet-linux (valet --version): 2.2.32
    • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

    What is the problem? After running valet install for a few seconds, the network connection is lost (the network icon shows an exclamation mark)

    What was supposed to happen? Lost Internet connection

    What actually happened? Network icon with exclamation mark and cannot network access

    How to reproduce this?

    • Install new Ubuntu 22.04
    • Install Composer, Install Valet
    • Run valet install and lost internet.

    I have reinstalled Ubuntu and tried to install Valet 3 times but still get the same problem

    What is the solution? N/A

    Reviewed by datlechin at 2022-05-06 13:05
  • 16. Bug: install cert on firefox

    Basic info

    | Distro (Name and version) | PHP Version | Valet version | | ------------------------- | ----------- | ------------- | | Fedora 36 | 8.1.4 | 2.2.2 |

    • [x] I've checked the issue queue and could not find anything similar to my bug.
    • [x] I'm on the latest version of valet-linux (valet --version): Valet v2.2.2
    • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

    What is the problem?

    Install Cert on firefox not works, In file https://github.com/cpriego/valet-linux/blob/f1264e29fcd89ec34c40a5eb08cb6ed603d25022/cli/Valet/Site.php#L574 use the folder '*.default', but that route not always is the same in my case is .default-'

    What is the solution?

    A proper solution is read the profile.ini and get the default profile or install the cert in all folder under '.$HOME/.mozilla/firefox/'

    Reviewed by cognitus at 2022-05-02 15:43
  • 17. Bug: wrong permission

    Basic info

    | Distro (Name and version) | PHP Version | Valet version | | ------------------------- | ----------- | ------------- | | Fedora 36 | 8.1.4 | 2.2.2 |

    • [x] I've checked the issue queue and could not find anything similar to my bug.
    • [x] I'm on the latest version of valet-linux (valet --version): Valet v2.2.2
    • [x] I've run valet fix and valet install after updating and before submitting my issue/feature.

    What is the problem?

    Permissions of folder /var/lib/nginx must be changed for the owner of process of nginx.

    What is the solution? At the moment use valet install or valet fix the permission should be changed

    Reviewed by cognitus at 2022-05-02 15:42
Demo of how you can run your Laravel app with Docker Compose. Look at docker-compose.yml and the docker folder. The rest is just a clean Laravel + Horizon install.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Oct 22, 2021
Dockerized version of Laravel Homestead

laraedit-docker Dockerized version of Laravel Homestead Documentation For now you can check out the wiki for details on using the container. Once the

May 22, 2022
A collection of Laravel goodies.

Laravel Mixins Launcher ?? Hey! We've built a Docker-based deployment tool to launch apps and sites fully containerized. You can find all features and

May 6, 2022
Laravel 5 with Dockerized Gulp, PHP-FPM, MySQL and nginx using docker-compose

docker-laravel Laravel 5 with Dockerized PHP-FPM, MySQL and nginx using docker-compose Usage Get Composer docker-compose run --rm phpnginx curl -O htt

Feb 8, 2022
Docker Containers for simple Laravel development.
Docker Containers for simple Laravel development.

Docker containers of Laravel development. Docker Containers for simple Laravel development. Prerequisites This package only works for Linux users righ

May 19, 2022
A package that allows you to generate simple and fast Docker configurations for your Laravel application!

A package that allows you to generate simple and fast Docker configurations for your Laravel application!

Dec 23, 2021
Docker-based workflow management system for Laravel

DevOption Workflows Workflows is a Docker-based workflow management system for Laravel applications. Installation You can install the package via comp

Jan 5, 2022
A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

May 27, 2022
Valet WSL is an advanced development environment for Windows Subsystem for Linux
Valet WSL is an advanced development environment for Windows Subsystem for Linux

Introduction Valet WSL is an advanced development environment for Windows Subsystem for Linux. No Vagrant, no hosts file manual management. You can ev

Mar 24, 2022
YCOM Impersonate. Login as selected YCOM user 🧙‍♂️in frontend.

YCOM Impersonate Login as selected YCOM user in frontend. Features: Backend users with admin rights or YCOM[] rights, can be automatically logged in v

Jan 19, 2022
Laravel Valet for Windows.

Windows port of the popular development environment Laravel Valet. Introduction Valet is a Laravel development environment for Windows. No Vagrant, no

May 19, 2022
Windows version of Laravel Valet
Windows version of Laravel Valet

Laravel Valet For Windows Introduction This is Windows version of Laravel Valet. Valet is a Laravel development environment for minimalists. This Wind

Nov 6, 2021
Quick new application creation with Laravel and Valet
Quick new application creation with Laravel and Valet

Super-powered laravel new for Laravel and Valet Lambo is a command-line tool that replaces the Laravel installer and wraps up the most common tasks yo

Apr 30, 2022
A web based UI for browsing the projects being served by Laravel Valet.
A web based UI for browsing the projects being served by Laravel Valet.

?? Valet Launchpad A web based UI for browsing the projects being served by Laravel Valet. Built on Laravel (with TailwindCSS & Alpine.JS), this small

May 23, 2022
Boilerplate code for protecting a form with proof of work. Uses javascript in the browser to generate the hashcash and PHP on the server to generate the puzzle and validate the proof of work.

Boilerplate code for protecting a form with proof of work. Uses javascript in the browser to generate the hashcash and PHP on the server to generate the puzzle and validate the proof of work.

Apr 27, 2022
Surf, an opinionated fork of Wave - the SAAS starter kit, with Laravel 9.
Surf, an opinionated fork of Wave - the SAAS starter kit, with Laravel 9.

Surf ??‍♀️ Introduction Surf, the opinionated Software as a Service Starter Kit that can help you build your next great idea ?? . Surf is fork off Wav

May 19, 2022
A php API documentation generator, fork of Sami

Doctum, a PHP API documentation generator. Fork of Sami Curious about what Doctum generates? Have a look at the MariaDB MySQL Kbs or Laravel documenta

May 19, 2022
Please see the Diglactic fork.

Update: 18 October 2020 There is now an official fork of Laravel Breadcrumbs: https://github.com/diglactic/laravel-breadcrumbs Blog post: https://news

May 16, 2022
(Hard) Fork of WordPress Plugin Boilerplate, actively taking PRs and actively maintained. Following WordPress Coding Standards. With more features than the original.

Better WordPress Plugin Boilerplate This is a Hard Fork of the original WordPress Plugin Boilerplate. The Better WordPress Plugin Boilerplate actively

May 20, 2022