Tuesday, June 13, 2017

How to create Laravel project ? 


In this article i'm going to describe about how to create laravel project in windows. first of all you need to have Apache-MySQL-PHP package.(Wamp or Xampp). if don't have any of these. go to the following and install it.

https://www.apachefriends.org/download.html - To Install Xampp

http://www.wampserver.com/en/download-wampserver-32bits/ - To Install Wamp Server

once you installed or if already installed. then open command prompt and just type php --version. if it returns nothing then go to (If you have installed Xampp) Xampp folder and go to Php folder, inside your php folder you find a file named as "Php.exe" so just copy the path and go to control panel ==> System and Security ==> Advanced system setting ==> Environment variables. in environment variables click path and edit path by adding  php.exe path.

same wise go mysql folder in Xampp folder add the folder path. just like the before step.

After that go to php folder and open the php.ini file make sure that "extension=php_openssl.dll" this line is not commented. same wise go to the apache folder open conf folder and open the httpd.conf file and make sure that ''LoadModule rewrite_module modules/mod_rewrite.so" this line is not commented.

that's all you to have to do first. now you can check your php,mysql version in command prompt.

next go to this link https://getcomposer.org/download/ and install the composer. to install this just follow the commands described in the link. if you install this in your xampp directory it would be better. once you installed it. you can find a file named as "composer.phar" in your xampp directory. just named it file as "composer" for convenience.

now everything ready. go to xampp directory by command line and  just type the below command
composer create-project laravel/laravel htdocs/your-project-name

you can find a folder which you named for project in your htdocs folder.

turn on the xampp and go to browser and just type localhost/project folder/public and confirm it.

in my next article i will describe about the file structure of laravel. thank you. if you have any problem regarding the installation of the laravel please comment below. 





No comments:

Post a Comment