9951 explained code solutions for 126 technologies


php-laravelHow do I use Laravel Valet with PHP?


Laravel Valet is a development environment for Mac users. It is an easy-to-use development environment for quickly creating and running Laravel applications. It provides a minimalistic development environment that is easy to setup and use. To use Laravel Valet with PHP, you need to install it and configure it first.

  1. Install Valet:
composer global require laravel/valet
  1. Configure Valet:
valet install
  1. Create a new directory for your project:
mkdir myproject
  1. Change to the project directory:
cd myproject
  1. Create a new Laravel project:
composer create-project laravel/laravel myproject
  1. Link your project to Valet:
valet link
  1. Access your project in the browser:
http://myproject.test

Now you can use Laravel Valet with PHP to develop your project.

Helpful links

Edit this code on GitHub