Below is the easy steps-
Step 1. Go in the directory
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 :
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
cmd2 :
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 :
php composer-setup.php
cmd4 :
php -r "unlink('composer-setup.php');"
Or
composer global require "laravel/installer"
Step 3.
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.
var/www/html/testlaravel
Step 5.
Hit the url : http://localhost/testlaravel/public/
Step 6.
Have Fun :)
No comments:
Post a Comment