Installing Laravel Valet
DevelopmentI bought a new laptop, so I need to install everything. In this video I’m taking you along the installation of Laravel Valet.
I bought a new laptop, so I need to install everything. In this video I’m taking you along the installation of Laravel Valet.
A free course on Laravel 6 (from scratch) is available on Laracasts.
This course is Created by Jeffrey Way.
We ran through this course ourselves and it came out very good, well build and understandable for any level.
So if you’re used to working with Laravel, or just getting started, go ahead and check it out.
Tired of the localhost setup like MAMP, WAMP or XAMP?
Tired of the configuration, ‘etc/hosts’, and stuff like that.
We’ve been experimenting with Laravel Valet for the last months now and decided not to go back.
Its super easy, fast and reliable.
Before you start, make sure no other service is using port 80.
We’ll get started with installing Homebrew, the latest version of PHP (7.4 at this moment) and Composer
– You can update your Homebrew with “brew update”
– Installing the latest version of PHP using Homebrew : “brew install php”
We’re going to install Valet globally to our machine so we’ll use the following command.
composer global require laravel/valet
Once installed we can run valet install…
We need to attach Valet to an directory where we’ll keep our projects.
When navigated to the directory of your choice we can initiate this directory as the Valet directory by using the Park Command.
valet park
Once run, we can create new application projects in this directory.
The directory name of the project will also be the url for Valet. So for example is I have a directory called “pizzawebsite” I can use the URL http://pizzawebsite.test it’s as easy as that…
It’s even possible to share a project with your team of client.
Thanks to the valet share command a publicly accessible url will be created using Ngrok.
For those of thought Laravel Valet is only for Laravel projects… Nope !
It can be used for Laravel, Lumen, October CMS, Drupal, Craft CMS, Magento, WordPress and many more.
As I wrote a piece about Localisation in Laravel 5.8, I decided to create a video tutorial about this.
So here it is.