Below is the easy steps-
Step 1. Go in the directory
1 | var/www/html/ |
Step 2. Install composer
we can install composer in the current directory, run the following script in your terminal. you can alos visit the folowing link https://getcomposer.org/download/
cmd1 :
1 | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
cmd2 :
1 | php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
cmd3 :
1 | php composer-setup.php |
cmd4 :
1 | php -r "unlink('composer-setup.php');" |
Or
1 | composer global require "laravel/installer" |
Step 3.
1 | composer create-project --prefer-dist laravel/laravel {directory name here} |
Eg. composer create-project --prefer-dist laravel/laravel testlaravel
Step 4.
Check created folder in current directory.
1 | var/www/html/testlaravel |
Step 5.
Hit the url : http://localhost/testlaravel/public/
Step 6.
Have Fun :)
No comments:
Post a Comment