MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Install and create a project in Laravel for Windows User!

Before installing Laravel Composer, ensure that you have installed Xampp Server and Git-Bash. If not installed then go to this link and install:-

xampp:- https://www.apachefriends.org/download.html
Git-bash:- https://gitforwindows.org/

After that, We install Laravel Composer. We can install Composer by two methods:-
1. By Command:- We can install composer by Below command.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Just go to xampp directory and the open command prompt and run the command, it will automatically install Composer and its files.

2. By Application:- Click on Download Composer and download the Composer-Setup.exe file and install it manually.

Path:- After installing the composer we have set Path of the composer.
First, go to your composer directory and copy the location. My location is ( C:\ProgramData\ComposerSetup\bin).

After that go to Control panel and search:- advance system setting and click on View Advance system setting. See the below image:-

Windows Control Panel search results with View advanced system settings link highlighted

After click on it a window open of System Properties. Now click on Environment Variables. see the below image:-

Windows System Properties Advanced tab with arrow pointing to the Environment Variables button

Now, the environment variable tab opens. after that under System Variables, double click on path. See the below image:-

Windows Environment Variables dialog with the Path entry under System variables highlighted

after double click on path, new tab (edit-environment-variable) opens. Now, click on new and paste the directory address which you have copied before and click ok => ok => ok.

Edit environment variable dialog: click New, then add C:\ProgramData\ComposerSetup\bin to Path

Done Your composer’s path is set.

After installation and path setting, verify that your composer was installed successfully or not. To verify, type composer in Command Prompt and if it shows result like below then your composer installed successfully.

Command Prompt running composer, showing Composer version 1.9.3 with usage, options and commands

How to Create a Project In Laravel.

For creating a project in Laravel, Go to xampp\htdocs and click on git-bash as shown below:-

File Explorer in C:\xampp\htdocs with the right-click menu option Git Bash Here highlighted

After Clicking in Git_bash an interface will open and we have to write the below command and hit Enter to create a project.

composer create-project --prefer-dist laravel/laravel Project-Name "5.5.*"

After pressing Enter, It will create a folder with the given project name and install, download all files. See the below image

Git Bash running composer create-project for laravel/laravel 5.5 while Project-Name folder appears in htdocs

After completing the process of installation, your project files are ready for work. After successful installation of project files, it will show output like below:-

Git Bash showing Laravel install finished with application key set, next to the new project's files

Now Our project file is ready, So let’s test it. Go to the project directory and open Git-bash.

First, we have to run the server by the below command, see the below image.

php artisan serve

Git Bash running php artisan serve, with Laravel development server started at http://127.0.0.1:8000

See the above image, after running the command, the server started and it shows the address. Just copy the address and paste in the web-browser, it will execute your project. see the below output.

Browser at 127.0.0.1:8000 showing the default Laravel welcome page after php artisan serve

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

Xampp Troubleshooting Guide

Log Levels of Apache, MySql, PHPMyAdmin, PHP, Composer Apache MySQL PHPMyAdmin PHPMyAdmin’s log level is primarily controlled by the PHP configuration, as it’s a PHP application. PHP…

Read More

Composer Install and Configuration Guide

Windows: Composer Install and Configuration Guide Prerequisite – XAMPP Step 1 – Download Composer package https://getcomposer.org/download/ Step 2 – Click on Composer-Setup.exe to start installer Step 3…

Read More

HOW TO CREATE EVENT CALENDAR IN LARAVEL? PART-1

Step 1. Before creating the project firstly, we download all the setups. Composer XAMPP Visual Studio IDE Git Bash Here Step 2. Now open your Internet Browser…

Read More

How to Install Laravel Framework in Windows

By installing three software, we can work in Lvr, so let’s know which angle is the software which we can install Installing XAMPP Installing Composer Installing Laravel…

Read More

Setting a Local Development Environment for Laravel on Windows | Install Laravel on Windows

Many developers use Windows for PHP projects, we will cover a basic XAMPP Setup for a Laravel project. Following these easy steps will help you run your…

Read More

How to Reset or Recover Forgotten mySql root Password

To reset a forgotten MySQL or MariaDB root password, stop the server, restart it with grant checks turned off (skip-grant-tables), set a new password with ALTER USER,…

Read More