How to install Laravel 7.2 with Xampp (Windows)
Install XAMPP
Before installing Laravel in a windows machine, First of all, we need to install a localhost apache server(XAMPP). As we are going to install laravel 7.2, it needs PHP 7.2 or the latest version of PHP. Here is the official website to download XAMPP.
![]() |
After installing XAMPP lets check whether it works perfectly or not. Start Apache and goes to your favorite browser and type "localhost" in URL. It will look something like this. |
Install Composer
After the successful installation of XAMPP, you need to install the composer in your system because the composer is dependency management in PHP.
It is easy to install. You can install the composer via commands or using its .exe file. Composer Install
It is easy to install. You can install the composer via commands or using its .exe file. Composer Install
After install, the composer goes to CMD prompt type composer. If you see something like this you are ready to install laravel.
Install Laravel 7.2
To install laravel go to htdocs folder and run the following command:
composer create-project --prefer-dist laravel/laravel <your new folder name for laravel> " 5.6.*"
Once you are done with this entry in your <your new folder name for laravel> by us command cd <folder name>. Then run php artisan serve to start laravel. be sure that XAMPP is running.
Finally type the follwing URL in your browser: http://127.0.0:8000.
Once you are done with this entry in your <your new folder name for laravel> by us command cd <folder name>. Then run php artisan serve to start laravel. be sure that XAMPP is running.
Finally type the follwing URL in your browser: http://127.0.0:8000.





Comments
Post a Comment