1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00
This commit is contained in:
Taylor Otwell
2016-05-04 21:39:30 -05:00
parent 9cc1fadfab
commit d313d066f8

View File

@@ -26,7 +26,13 @@ ### Getting Started
Once Valet is installed, you're ready to start serving sites. Valet provides two commands to help you serve your Laravel sites: `park` and `link`. Once Valet is installed, you're ready to start serving sites. Valet provides two commands to help you serve your Laravel sites: `park` and `link`.
First, let's try the `park` command. Create a new directory on your Mac such `mkdir ~/Sites`. Next, `cd ~/Sites` and run `valet park`. This command will register your current working directory as a path that Valet should search for sites. Next, create a new Laravel site within this directory: `laravel new blog`. Next, you may simply open `http://blog.dev` in your browser. It's just that simple. Any Laravel project you create within your "parked" directory will automatically be served using the `http://folder-name.dev` convention. First, let's try the `park` command:
- Create a new directory on your Mac such `mkdir ~/Sites`. Next, `cd ~/Sites` and run `valet park`. This command will register your current working directory as a path that Valet should search for sites.
- Next, create a new Laravel site within this directory: `laravel new blog`.
- Now you may simply open `http://blog.dev` in your browser.
**It's just that simple.** Any Laravel project you create within your "parked" directory will automatically be served using the `http://folder-name.dev` convention.