Today’s tutorial will teach you how to install laravel on windows.Installing Laravel is very simple than you think.Follow the below steps to install laravel.
We will use composer for installing laravel ,So our first question will be what is Composer.
Composer : 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.
No need is worry about composer ,installing composer is very easy ,here is the simple tutorial on how to install composer on xampp
Now, back to laravel.
Laravel: Laravel is very simple and powerfull Php Framewok.It’s simplicity make it most popular among the developer’s.
System Requirement for Laravel
- PHP >= 5.6.4
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
You can install Laravel by issuing the Composer
create-project command in your terminal:
Go to the folder where you want to install laravel and open command prompt within this folder.For xampp goto C:\xampp\htdocs
composer create-project --prefer-dist laravel/laravel blog
Note:In above command “blog” is your sitefoldername
Now ,your have installed laravel ,now the next steps are as follows:
1)Set Application Key
You can install the application key by running
php artisan key:generate command.
Typically, this string should be 32 characters long. The key can be set in the
.env environment file. If you have not renamed the
.env.example file to
.env, you should do that now. If the application key is not set, your user sessions and other encrypted data will not be secure!
2)Set Directory Permissions
Directories within the
storage and the
bootstrap/cache directories should be writable by your web serve.
Hope ,I am able to help you to install laravel on windows.
Please like ,share ,comment.