How to download and install Lavavel framework?

0 votes
What is the procedure to install Laravel in my computer(Windows 10)?
Mar 17 in Laravel by kartik
• 31,530 points
206 views

1 answer to this question.

0 votes

Hey @kartik,

First you must have xampp install in your computer- To Download and install xampp- Xampp installer

Then you have to follow these steps:
1.  Download -Go to the browser and search composer for laravel or click the link- Composer in laravel.

2.You need to download composer-setup.exe

3.After installing it-Open composer and the set path to xampp\php\php.exe

Then you can open your command line and type composer.

The following content will display on you prompt.

4. Then you need to install laravel. to do so create a folder named laravel in htdoc of xampp (xampp/htdoc/laravel)

5. Copy the path of laravel and go to that path via a comand prompt and paste 

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

Thank you!!

answered Mar 17 by Niroj
• 68,260 points

After entering

composer create-project --prefer-dist laravel/laravel laravel.
This error message appears

[ErrorException]
 mkdir(): Permission denied

I need the right terminal to use

Hello @ Sopeaceman,

First try executing the command using sudo:

sudo composer create-project laravel/laravel mydir

If it doesn't work try to follow this:

For security reasons, lets keep root as the owner and just allow ourselves to read, write, and execute within the area which we will be working in.

  1. Change directories

    cd /var/www/
  2. Change group ownership

    sudo chown -Rv root:$USER .
  3. Add priviledges to our group

    sudo chmod -Rv g+rw .
  4. For the grand finale, go ahead and create your new laravel project

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

Hope it helps!!

ThanK you!!

Related Questions In Laravel

0 votes
1 answer

Explain validations in laravel and How to validate my application incoming data?

Hey @kartik, In Programming validations are a handy ...READ MORE

answered Mar 23 in Laravel by Niroj
• 68,260 points
126 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
• 68,260 points
239 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
• 68,260 points
234 views
0 votes
1 answer

How to make a constant and use globally in laravel?

Hii, You can create a constants.php page in config folder ...READ MORE

answered Mar 24 in Laravel by Niroj
• 68,260 points
117 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
• 68,260 points
95 views
0 votes
1 answer

What are the important directories used in a common Laravel application

Hey @Kartik. Directories used in a common Laravel ...READ MORE

answered Mar 17 in Laravel by Niroj
• 68,260 points
132 views
0 votes
1 answer

Error: listen EADDRINUSE while using nodejs?

Hello @kartik, EADDRINUSE means that the port number which listen() tries ...READ MORE

answered Jul 9 in Node-js by Niroj
• 68,260 points
148 views
0 votes
1 answer

ReferenceError: primordials is not defined in node

Hello @kartik, Use following commands and install node v11.15.0: npm ...READ MORE

answered Jul 12 in Node-js by Niroj
• 68,260 points
1,709 views
0 votes
1 answer
0 votes
1 answer

How to pass data through URL and access through controller in Laravel?

Hello, You can  first refer how to  Create controller through ...READ MORE

answered Mar 18 in Laravel by Niroj
• 68,260 points
2,423 views