How can I install Laravel via Laravel Installer on Windows?

0 votes
How can we install Laravel via Laravel Installer on Window?

Thank You!
Mar 31 in Laravel by kartik
• 10,990 points
45 views

1 answer to this question.

0 votes

Hello,

The PATH for Windows:

I’ve found the location where composer stores the Vendor files.

So instead of ~/.composer/vendor/bin, on Windows the following path should be used:

C:\Users\<COMPUTER NAME>\AppData\Roaming\Composer\vendor\bin

How to install the Laravel Installer:

First of all install the Laravel Installer. Open a command prompt and enter:

composer global require "laravel/installer=~1.1"


Then update the PATH environment variable via e.g. command prompt with admin privileges:

setx /M path "%path%;%appdata%\Composer\vendor\bin"

%appdata% is added, so you don’t have to worry about adding your computer name.
 

How to create a fresh Laravel Installation:

Now you should be able to run laravel commands in the command prompt.

To create a fresh laravel installation, open a command prompt in the directory of choice and enter:

laravel new name_of_directory

If everything went right, you should see the following message:

Crafting application...
Application ready! Build something amazing

Thank You!!

answered Mar 31 by Niroj
• 22,110 points

Related Questions In Laravel

0 votes
1 answer

How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

Hello, To create both of the created_at and updated_at columns: $t->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $t->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update ...READ MORE

answered Apr 2 in Laravel by Niroj
• 22,110 points
298 views
0 votes
1 answer

How can we get started with Laravel through Xampp?

Hii, First you need to start Apache and ...READ MORE

answered Mar 17 in Laravel by Niroj
• 22,110 points
28 views
0 votes
1 answer

What is middleware? How can we register middeleware in Laravel?

Middleware acts as a bridge between a ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,110 points
100 views
0 votes
1 answer

How can we Disable CSRF Laravel?

Hello, You can disable CSRF Laravel from the App/Http/Kernel.php file ...READ MORE

answered Mar 19 in Laravel by Niroj
• 22,110 points
46 views
0 votes
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,110 points
417 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,110 points
62 views
0 votes
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,110 points
139 views
0 votes
1 answer

What is database migration and How to create database migration in Laravel?

Hii, Migrations are like version control for your database, ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,110 points
52 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,110 points
64 views
0 votes
1 answer

How do I set up phpMyAdmin on a Laravel Homestead box?

Hello, Step 1: Go to the phpMyAdmin website, download the latest ...READ MORE

answered Mar 31 in Laravel by Niroj
• 22,110 points
66 views