Friday, June 3, 2016

How to Install and Make First Laravel App on Windows

I utilize Wamp on my Windows box for creating PHP based applications, I as of late introduced Laravel on my Windows box to test how to system functions and performs regular errands identified with web improvement. I would continue posting well done I found out about Laravel in simple to take after strides for new engineers of Laravel like me.

The Steps I took after are taking after:

Laravel utilized Composer for reliance administration, so first I introduced Composer for Windows. Like to download is: https://getcomposer.org/Composer-Setup.exe

Amid the Composer establishment, it would request the area of PHP.exe, so ensure you have introduced PHP on your framework before you introduce Composer.

It would download a couple of things from web, so hold up with persistence. It utilizes SSL, so ensure SSL module is empowered in your php.ini document, simply expel the ";" before the like: "extension=php_openssl.dll". The php.ini document is situated at your php's establishment home envelope.

The establishment would likewise set the author area into you windows way natural variable, with the goal that you can utilize writer order from Command Prompt.

Download the Laravel Installer utilizing Composer. On your Command Prompt, enter:

writer worldwide require "laravel/installer=~1.1"

It would introduce all conditions e.g. Symfony Console, Guzzlehttp Guzzle, Laravel Intaller, and so forth.

Include your ~/.author/seller/receptacle way into Path natural variable, so Windows Command Prompt could recognize laravel order that would be utilized later to introduce Laravel and doing different assignments. For my situation the way where its found is:

C:\Users\UserName\AppData\Roaming\Composer\vendor\bin

so I included it into my Path ecological variable. Must restart your Shell or Command-Prompt so that redesigned Path variables is stacked.

Its opportunity to make our first Laravel applications. For it, we have to introduce the Laravel itself. Afte you have done the above strides, its exceptionally basic. Issue taking after summon at Command Prompt:

laravel new application name

ensure your present registry is the place you require your venture to be made. For my situation, I got taking after yield by running the laravel new charge:

D:\OtherData\LaravelApps>laravel new addressbook
Crafting application...
Application ready! Build something amazing.


The addressbook folder contents looks like this:




The mail folder where our major web applications components would be located is "app", its default structure is following:





I moved the addressbook folder into wamp/www/, and access the URL:
http://localhost/addressbook/public/, here is how it looks like:





2 comments: