How to Install Laravel 10 in Window 11

How to Install Laravel 10 in Window 11

Laravel is an open-source PHP framework that aids in the speedy and effective development of web applications. Laravel has recently risen to prominence as one of the most widely used PHP frameworks thanks to its expressive syntax, attractive code structure, and broad community support. We’ll show you how to install Laravel 10 on a Windows operating system in this article.

Please confirm that your machine satisfies the following prerequisites before beginning the installation process:

  • PHP >= 8.0
  • Composer
  • Git
  • Node.js & NPM

You can start the installation process after installing the aforementioned prerequisites.

Step 1: Install Laravel Installer

The Laravel installer, a command-line tool provided by Laravel, makes it simple to start new Laravel applications. Open a command prompt and type the following command to install the Laravel installer:

javascriptCopy codecomposer global require laravel/installer

You may access the Laravel installer from anywhere on your machine because this command installs it globally.

Step 2: Create a new Laravel Project

Once the Laravel installer has been set up, you can launch the following command to start a new Laravel project:

javascriptCopy codelaravel new myproject

Put the name of your project in place of “myproject”. In a directory with the same name as your project, this command will create a new Laravel project.

Step 3: Start the Development Server

You can launch the development server after creating the Laravel project by using the following command:

Copy codephp artisan serve

The development server will be launched by this command at http://localhost:8000.

Step 4: Install Node Dependencies

Front-end dependencies are managed by Laravel using Node.js and NPM. Use the following command in your project directory to install the required dependencies:

Copy codenpm install

This command will set up every Node.js package that Laravel needs.

Step 5: Configure your Environment

To keep all the configuration data relevant to an environment, Laravel employs an.env file. The following command can be used to copy the.env.example file and rename it to.env:

bashCopy codecp .env.example .env

After that, you can configure the appropriate values, such as the application key and database credentials, by opening the.env file in a text editor.

Step 6: Generate Application Key

User sessions and other sensitive data are encrypted by Laravel using an application key. Runing the following command to generate the application key:

vbnetCopy codephp artisan key:generate

A new application key will be generated by this command and saved to your.env file.

Congratulations! On your Windows operating system, Laravel 10 has been successfully installed. Now that Laravel is available, you may begin creating web apps.

This article ideas has been taken from the following websites; which are following:

https://laravel.com/docs/10.x/installation

How to install laravel 10 on windows 11/10

https://medium.com/@laraveltuts/installing-laravel-on-windows-10-a-beginners-guide-b34f5e075fca

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *