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, 2020 in Laravel by kartik
• 37,520 points
2,029 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, 2020 by Niroj
• 82,800 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, 2020 in Laravel by Niroj
• 82,800 points
12,832 views
+1 vote
1 answer

How can I run specific migration in laravel?

Hello @kartik, Use this command it worked for ...READ MORE

answered Aug 4, 2020 in Laravel by Niroj
• 82,800 points
24,657 views
0 votes
1 answer

How Can I Remove “public/index.php” in the URL Generated Laravel?

Hello @kartik, If it isn't already there, create ...READ MORE

answered Aug 10, 2020 in Laravel