Birmingham mumbai


> $ composer global require "laravel/homestead=~2.0"


Download 1.3 Mb.
Pdf ko'rish
bet40/68
Sana05.01.2022
Hajmi1.3 Mb.
#227543
1   ...   36   37   38   39   40   41   42   43   ...   68
Bog'liq
Laravel 5 Essentials

> $ composer global require "laravel/homestead=~2.0"

2.  Once downloaded, you need to initialize the VM using the following command 

(you may need to add Homestead to your path first, if you are using Windows):

> $ homestead init

3.  This will create a configuration file that you can edit to point to your projects

as well as create any databases you may need. To edit this file, you can run 

the following command:



> $ homestead edit

4.  The file will open in your default text editor. When it does, you will see the 

file is organized into sections. To get up and running, the two sections of 

most importance are the 

folders

 section and the 

sites

 section:



 °

folders


: This specifies the directory that you want to be shared  

on the VM.

 °

sites


: This allows you to map a domain to a folder on the 

Homestead VM, similar to Apache Virtual Hosts.




Chapter 2


Download 1.3 Mb.

Do'stlaringiz bilan baham:
1   ...   36   37   38   39   40   41   42   43   ...   68




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling