Monday 20 February 2017

Topic (Laravel) 1 - Laravel Framework Installation

Below are steps instruction for someone to get started with Laravel framework hence using it in day-to-day business operation in development environment.

Step 1 - Download composer and install it on your computer. 

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. You can get composer from here.

Step 2 - Install Laravel 

You can install Laravel by issuing the Composer create-project command in your terminal. But before that, you need to make sure the directory of your project must install according to intended directory.

For this example we change directory in cmd to www folder inside wamp server
cd c:\wamp64\www
Then, you can write down :
composer create-project laravel/laravel laraveltest
The composer will create the laravel project folder for you. Installation may require several minutes. 

You may find the created folder in this directory :



cd c:\wamp64\www\laraveltest



Step 3 - Open Laravel using Localhost

After installation is success, you may open front page by typing on website address. 

http://localhost/laraveltest/public/



OR

you can serve up the local host using artisan command  and then open our website using command line http://localhost:8000/ 


php artisan serve

http://localhost:8000/


If after git clone , you may need to do these:

1. composer dump-autoload
2. composer install
3. php artisan key:generate

References

https://laravel.com/docs/5.4
https://www.tutorialspoint.com/laravel/laravel_installation.htm

No comments:

Post a Comment