How to download and install Lavavel framework

0 votes
What is the procedure to install Laravel in my computer(Windows 10)?
Mar 17, 2020 in Laravel by kartik
• 37,520 points
1,442 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, 2020 by Niroj
• 82,840 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, 2020 in Laravel by Niroj
• 82,840 points
1,432 views
0 votes
1 answer

How to install Laravel via composer?

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

answered Mar 23, 2020 in Laravel by Niroj
• 82,840 points
2,918 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, 2020 in Laravel by Niroj
• 82,840 points
2,338 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, 2020 in Laravel by Niroj
• 82,840 points
4,063 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, 2020 in Laravel by Niroj
• 82,840 points
1,017 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, 2020 in Laravel by Niroj
• 82,840 points
2,418 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, 2020 in Node-js by Niroj
• 82,840 points
6,551 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, 2020 in Node-js by Niroj
• 82,840 points
10,423 views
0 votes
1 answer

How to make Django serve that file for download as opposed to trying to find a URL and View to display it?

Hello @kartik, You can just use the built ...READ MORE

answered Jul 30, 2020 in Laravel by Niroj
• 82,840 points
6,504 views
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, 2020 in Laravel by Niroj
• 82,840 points
11,902 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP