This is a fork of the original Laravel Valet project, modified to work with Fedora.
Main modifications:
- Replace Brew package manager with DNF
- Replace Brew services with systemd services
- Remove Brew path references
- Replace resolver with systemd-resolved
- Fix dnsmasq configuration using local=/test/ instead of listen-address=127.0.0.1
- Added temp directories for nginx under valet user (to solve permission issues due to changing the default nginx user)
- Replace security certificate generation with update-ca-certificates
- Install nginx and dnsmasq manually
- Add this to your
~/.config/composer/composer.json:
{
...
"repositories": [
{
"type": "git",
"url": "https://github.com/tognee/valet-for-fedora.git"
}
]
}- Install valet:
composer global require laravel/valet:dev-fedora - Run valet install:
valet install
If you are using SELinux, you may need to run the following command to allow valet to access the necessary files:
sudo setsebool -P httpd_can_network_connect 1
sudo semanage fcontext -a -t httpd_sys_content_t "$HOME/.config/valet(/.*)?"
sudo semanage fcontext -a -t httpd_sys_rw_content_t "$HOME/.config/valet/Temp(/.*)?"
sudo semanage fcontext -a -t httpd_sys_rw_content_t "$HOME/.config/valet/Log(/.*)?"
sudo semanage fcontext -a -t httpd_sys_rw_content_t "$HOME/.config/valet/valet.sock"
sudo semanage fcontext -a -t httpd_sys_content_t "$HOME/.config/composer/vendor/laravel/valet(/.*)?"Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.
Laravel Valet configures your Mac 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 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.
Documentation for Valet can be found on the Laravel website.
Thank you for considering contributing to Valet! You can read the contribution guide here.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Please review our security policy on how to report security vulnerabilities.
Laravel Valet is open-sourced software licensed under the MIT license.