Installation

How to Install Laravel on Windows. 


What is Laravel?
                            
Laravel is a powerful and elegant PHP web application framework that streamlines web application development through MVC (Model-View-Controller) architecture.
The MVC architecture is a way of building a huge application by splitting it into three parts. (Model, View, and Controller). This makes it easy to manipulate the complex application.



  • Model - It contains all the logic related to the application.
  • View - It contains user interfaces that the user sees on the webpage. 
  • Controller - The controller is what connects the model and view. it handles all the interaction between these two components.
Before you use the Laravel. You have to understand,
  • Basic knowledge of PHP programming.
  • Understanding of the MVC Architecture.
  • Familiar with the command line.
  •  Basic knowledge of HTML, CSS, and JavaScript.
To install Laravel on Windows follow these detailed steps,
  1. Installing the XAMPP server.
  2. Installing composer.
  3. Verify composer installation.
  4. Installing Laravel using Composer.
  5. Verify Laravel installation.
  6. Start the server.
  7. Run the project in your browser.

1. Installing the XAMPP server.
                     
XAMMP is a free and open-source web server solution stack that includes PHP, MYSQL, and Apache servers. visit the XAMPP download page and download the appropriate version according to your Windows version. once installed, launch the XAMPP controller and run the MYSQL and APACHE server.



2. Installing Composer.

Composer is a dependency management tool for PHP that is required to install Laravel.
        Visit the composer download page and download the composer-setup.exe file. then installing it on your computer.
        You can download the composer using this link https://getcomposer.org/

3. Verify Composer Installation.

To verify the composer, whether installed correctly or not, open the command prompt and run the following command.

        composer --version


4. Installing Laravel using Composer.

Now you can use Composer to install the Laravel project globally on your system.

        composer create-project laravel/laravel my_first_project

After that Laravel files will automatically download the relevant Laravel files.

5. Verify The Laravel Installation.

To verify that Laravel was installed correctly. you have to run a command on the terminal. you can run the following command,

        laravel --version

Then you will be able to see the version of Laravel.

6. Start Server.

To run your Laravel project you have to follow this command on the terminal. First of all, You have to select the file directory and then write. 

        php artisan serve



7. Run the Project in your browser.

With the server started you should then be able to access your project via your browser. To do that, Open your browser and type https://localhost:8000

Then display the Laravel interface as the default screen.


🎉 Congratulations on Finishing Your First Task! 🎉

--- Please put your ideas in the comment box ---

 

Comments

Popular posts from this blog

Laravel Switch-Case Statement.

Understanding Laravel Middleware

Database Normalization