Setting up Laravel

Installing Composer

Laravel utilizes Composer to manage its dependencies. So, before using Laravel, you will need to make sure you have Composer installed on your machine. After installing Laravel, the laravel .exe is included in system path so we can run composer command from any directory in syetem.
Composer is installed from composer

Install Laravel Via Composer Create-Project

You may also install Laravel by issuing the Composer create-project command in your terminal:

composer create-project laravel/laravel --prefer-dist

Here laravel is the name of project to be created in your www directory of the LAMP/WAMP/MAMP installation. After execution of some set of commands your project will be created with following directory structure:

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----          5/1/2015   9:31 AM            app
d----          5/1/2015   9:31 AM            bootstrap
d----          5/1/2015   9:31 AM            config
d----          5/1/2015   9:31 AM            database
d----          5/1/2015   9:31 AM            public
d----          5/1/2015   9:31 AM            resources
d----          5/1/2015   9:31 AM            storage
d----          5/1/2015   9:31 AM            tests
d----          5/1/2015  12:53 PM            vendor
-a---          5/1/2015   9:32 AM        302 .env
-a---          5/1/2015   9:31 AM        286 .env.example
-a---          5/1/2015   9:31 AM         61 .gitattributes
-a---          5/1/2015   9:31 AM         27 .gitignore
-a---          5/1/2015   9:31 AM       1635 artisan
-a---          5/1/2015  12:31 PM        793 composer.json
-a---          5/1/2015   9:31 AM     100509 composer.lock
-a---          5/1/2015   9:31 AM        503 gulpfile.js
-a---          5/1/2015   9:31 AM         98 package.json
-a---          5/1/2015  12:31 PM         97 phpspec.yml
-a---          5/1/2015   9:31 AM        777 phpunit.xml
-a---          5/1/2015   9:31 AM       1724 readme.md
-a---          5/1/2015   9:31 AM        560 server.php
Share

You may also like...