{"id":65354,"date":"2024-06-14T15:09:54","date_gmt":"2024-06-14T10:09:54","guid":{"rendered":"https:\/\/devrims.com\/blog\/?p=65354"},"modified":"2025-06-03T17:43:15","modified_gmt":"2025-06-03T12:43:15","slug":"how-to-install-laravel-localhost","status":"publish","type":"post","link":"https:\/\/devrims.com\/blog\/how-to-install-laravel-localhost\/","title":{"rendered":"How to Install Laravel on Windows Localhost?"},"content":{"rendered":"\r\n\r\n\r\n\r\n\r\n\r\n\n<p>Laravel is a robust open-source PHP web application framework that provides robust tools and an expressive architecture for building modern web applications. Developers widely adopt it due to its elegant syntax, extensive documentation, and vast community. While Laravel is designed for production environments, setting up a local development environment for testing and development purposes is essential.<\/p>\n\n\n\n<p>This article will provide a step-by-step guide to installing Laravel on your local machine using XAMPP, a free, open-source, cross-platform web server solution. A local development environment allows you to experiment with Laravel&#8217;s features, <a href=\"https:\/\/devrims.com\/blog\/common-laravel-issues\/\" target=\"_blank\" rel=\"noreferrer noopener\">debug issues<\/a>, and test your applications before deploying them to a live server.<\/p>\n\n\n\n<p>Our guide is designed to assist developers of all skill levels, from beginners to experienced ones, in successfully setting up Laravel on their local machines. By following the instructions, you can create and run Laravel projects locally, enabling you to explore its powerful features and capabilities efficiently. Let&#8217;s get started.<\/p>\n\n\n\n<h2 id='why-do-you-need-to-install-laravel-on-localhost'  id=\"boomdevs_1\" class=\"wp-block-heading\">Why Do You Need to Install Laravel on Localhost?<\/h2>\n\n\n\n<p>For developers and designers working with Laravel, setting up a local development environment is crucial. Here are a few key reasons why you should install Laravel on your local machine:<\/p>\n\n\n\n<p><strong>Testing and Experimentation:<\/strong> A local environment allows you to safely test new features, updates, or patches before deploying them to a live production server. This minimizes the risk of introducing bugs or issues affecting your live applications.<\/p>\n\n\n\n<p><strong>Development Workflow:<\/strong> When working on client projects or personal applications, you can make changes, experiment with different approaches, and debug issues locally without impacting the live site. This streamlines your development workflow and enables you to catch and fix problems before pushing changes to a production environment.<\/p>\n\n\n\n<p><strong>Multiple Projects and Versions:<\/strong> Installing Laravel locally enables you to work on multiple projects simultaneously, each with its configuration and dependencies. You can also test your applications against different versions of Laravel without conflicts.<\/p>\n\n\n\n<h2 id='laravel-installation-requirements'  id=\"boomdevs_2\" class=\"wp-block-heading\">Laravel Installation Requirements<\/h2>\n\n\n\n<p>Before proceeding with the Laravel installation on your local machine, ensure that your system meets the following requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Web Server:<\/strong> Apache or Nginx (Laravel provides built-in support for both).&nbsp;<\/li>\n\n\n\n<li><strong>PHP:<\/strong> Laravel requires PHP 8.0 or later, along with several extensions such as BCMath, Ctype, JSON, Mbstring, OpenSSL, PDO, Tokenizer, and XML.<\/li>\n\n\n\n<li><strong>Database:<\/strong> Laravel supports various database systems, including MySQL, PostgreSQL, SQLite, and SQL Server.<\/li>\n\n\n\n<li><strong>Composer:<\/strong> Laravel utilizes Composer to manage dependencies and install packages.<\/li>\n<\/ul>\n\n\n\n<p>Once you have verified that your system meets these requirements, you can proceed with the step-by-step installation process to set up Laravel in your local development environment.<\/p>\n\n\n\n<h2 id='how-to-run-laravel-project-on-localhost-step-by-step'  id=\"boomdevs_3\" class=\"wp-block-heading\">How to Run Laravel Project on Localhost? (Step-by-Step)<\/h2>\n\n\n\n<p>Follow these steps to install and run the Laravel Project on Localhost using the xampp server.<\/p>\n\n\n\n<h3 id='step-1-install-the-xampp-server'  id=\"boomdevs_4\" class=\"wp-block-heading\">Step 1: Install the XAMPP Server<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, go to the <a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Apache Friends<\/a> website and download the XAMPP software. Choose the version that is compatible with your operating system and meets your specific requirements.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1.webp\" alt=\"Download XAMPP\" class=\"wp-image-69286\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1-300x139.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1-768x356.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/1-48x22.webp 48w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Run the downloaded installer and follow the instructions below to complete the installation.<\/li>\n\n\n\n<li>Click on the \u201c<strong>Next<\/strong>\u201d button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"425\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2.webp\" alt=\"Setup - XAMPP\" class=\"wp-image-69287\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2-300x254.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2-36x30.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/2-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Now, continue with the default selection shown in the image, and click on the \u201c<strong>Next<\/strong>\u201d button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3.webp\" alt=\"Select Components\" class=\"wp-image-69288\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/3-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>The default location is C:\\xampp, but you can choose the location according to your installation folder preference. Once you have made your selection, click on \u2018<strong>Next<\/strong>.\u2019<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4.webp\" alt=\"Installation Folder\" class=\"wp-image-69289\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/4-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li>Click the \u2018<strong>Next<\/strong>\u2019 button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5.webp\" alt=\"Bitmani for XAMPP\" class=\"wp-image-69290\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/5-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>The setup is now ready to install. Please click the \u2018<strong>Next\u2019<\/strong> button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6.webp\" alt=\"Ready to Install\" class=\"wp-image-69291\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/6-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>Please wait until the process is complete, as the setup wizard will install the XAMPP server on your computer. Once the installation is complete, the setup will automatically run.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"427\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7.webp\" alt=\"Installing\n\" class=\"wp-image-69292\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7-300x255.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7-36x31.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/7-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"9\">\n<li>Once the setup process is completed, you will see this message:<\/li>\n<\/ol>\n\n\n\n<p>\u201c<strong>Do you want to start the Control Panel now?<\/strong>\u201c<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\">\n<li>Click the \u201c<strong>Finish<\/strong>\u201d button to proceed further and exit the setup.&nbsp;<\/li>\n\n\n\n<li>You can now access the XAMPP control panel.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"425\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8.webp\" alt=\"Completing the XAMPP Setup Wizard\" class=\"wp-image-69293\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8.webp 502w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8-300x254.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8-24x20.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8-36x30.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/8-48x41.webp 48w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<h3 id='step-2-configure-xampp'  id=\"boomdevs_5\" class=\"wp-block-heading\">Step 2: Configure XAMPP<\/h3>\n\n\n\n<p>After launching the XAMPP server, we need to configure it. Follow these instructions to configure XAMPP on your system.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the XAMPP Control Panel, start the Apache and MySQL services by clicking the &#8220;<strong>Start<\/strong>&#8221; button next to each service.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"432\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9.webp\" alt=\"Start Services\" class=\"wp-image-69294\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9.webp 667w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9-300x194.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9-24x16.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/9-48x31.webp 48w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Ensure that the status indicator for both services turns green, indicating they are running.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"434\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10.webp\" alt=\"Running Services\" class=\"wp-image-69295\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10.webp 666w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10-300x195.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10-24x16.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/10-48x31.webp 48w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Click on the &#8220;<strong>Config<\/strong>&#8221; tab in the Apache section of the XAMPP Control Panel, locate the &#8220;PHP (php.ini)&#8221; file, and open it using a text editor.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"544\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon.webp\" alt=\"PHP (php.in)\" class=\"wp-image-69296\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon.webp 720w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon-300x227.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/11_1_11zon-48x36.webp 48w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>In the php.ini file, uncomment (remove the semicolon) the following lines:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>- extension=gd\n\n&nbsp;&nbsp;&nbsp;- extension=intl\n\n&nbsp;&nbsp;&nbsp;- extension=soap\n\n&nbsp;&nbsp;&nbsp;- extension=sockets\n\n&nbsp;&nbsp;&nbsp;- extension=sodium\n\n&nbsp;&nbsp;&nbsp;- extension=xsl<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Increase the memory limit by setting `memory_limit = 4G`.<\/li>\n\n\n\n<li>Save the changes to the php.ini file and close the text editor.<\/li>\n\n\n\n<li>Restart the Apache and MySQL services in the XAMPP Control Panel.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"430\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon.webp\" alt=\"XAMPP Control Panel\" class=\"wp-image-69297\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon.webp 666w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon-300x194.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon-24x15.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon-36x23.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/12_2_11zon-48x31.webp 48w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<h3 id='step-3-create-a-database-with-phpmyadmin'  id=\"boomdevs_6\" class=\"wp-block-heading\">Step 3: Create a Database with phpMyAdmin<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your web browser and navigate to <a href=\"http:\/\/localhost\/phpmyadmin\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">http:\/\/localhost\/phpmyadmin<\/a>.<\/li>\n\n\n\n<li>Log in to the phpMyAdmin account using your credentials (if prompted).<\/li>\n\n\n\n<li>Click on the &#8220;<strong>Databases<\/strong>&#8221; tab and enter a name for your new database.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13.webp\" alt=\"Databases\" class=\"wp-image-69298\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13-300x139.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13-768x357.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13-36x17.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/13-48x22.webp 48w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Click the &#8220;<strong>Create<\/strong>&#8221; button to create the new database.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"137\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14.webp\" alt=\"Create Databases\" class=\"wp-image-69299\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14.webp 533w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14-300x77.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14-24x6.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14-36x9.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/14-48x12.webp 48w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Create a table, enter columns, and click the Go button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"203\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15.webp\" alt=\"Create table\" class=\"wp-image-69300\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15-300x59.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15-768x152.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15-24x5.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15-36x7.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/15-48x10.webp 48w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 id='step-4-download-and-install-composer'  id=\"boomdevs_7\" class=\"wp-block-heading\">Step 4: Download and Install Composer<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Visit the official <a href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Composer<\/a> website and download the installer for your operating system.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/docsz\/AD_4nXecGcOTpBxonOdkUBVxlzKU2sOuRDUOFZhw7VluXrWrhLDp1EDeLlKmYjjuCZK3_QneFIQsLUhJK_mfniuswPvuzReAGUzP3jpXIoOiklG6bWoxAPc4IbSKFaq85eu-FfESQ6jVZQyE4lxuzUv7d4U0IURgEL4ofHckGhUmmGHzWBE_ElpggqQ?key=KFvwzM-UUpVMbZ6cWUL7TA\" alt=\"Download Composer\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Download this Composer \u2013 setup.exe file.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon.webp\" alt=\"Composer-Setup.exe\" class=\"wp-image-69301\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon-300x137.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon-768x351.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon-24x11.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon-36x16.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/16_3_11zon-48x22.webp 48w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Run the downloaded installer and follow the instructions below.<\/li>\n\n\n\n<li>Select a mode for installation; it is better to choose the recommended one.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"346\" height=\"256\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17.webp\" alt=\"Select Install Mode\" class=\"wp-image-69302\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17.webp 346w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17-300x222.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/17-48x36.webp 48w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Click \u201c<strong>Next.<\/strong>\u201d<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"469\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18.webp\" alt=\"Installation Options\" class=\"wp-image-69303\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18.webp 637w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18-300x221.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/18-48x35.webp 48w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li>Locate the PHP file address in the XAMPP folder and enter the location here. Then, check the \u201c<strong>add this PHP to your path<\/strong>\u201d box and click on the next.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19.webp\" alt=\"Settings Check\" class=\"wp-image-69304\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19.webp 638w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/19-48x36.webp 48w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Add a proxy URL if you want to, or skip it and click the \u201c<strong>Next<\/strong>\u201d button. (Optional)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"474\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20.webp\" alt=\"Proxy Settings\" class=\"wp-image-69305\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20.webp 641w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20-300x222.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/20-48x35.webp 48w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>Click on the \u201c<strong>Install<\/strong>\u201d button to begin the installation process.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"472\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21.webp\" alt=\"Install\" class=\"wp-image-69306\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21.webp 636w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/21-48x36.webp 48w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"9\">\n<li>Click on the \u201c<strong>Next<\/strong>\u201d button.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"467\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22.webp\" alt=\"Information\" class=\"wp-image-69307\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22.webp 633w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22-300x221.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/22-48x35.webp 48w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\">\n<li>Click on the \u201c<strong>Finish<\/strong>\u201d button to complete the installation.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"475\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23.webp\" alt=\"Finish Setup\" class=\"wp-image-69308\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23.webp 638w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23-300x223.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/23-48x36.webp 48w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"11\">\n<li>Open the Command Prompt and run the `<strong>composer<\/strong>` command to verify that Composer is installed correctly.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"513\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon.webp\" alt=\"Composer Installed\" class=\"wp-image-69309\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon.webp 973w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon-300x158.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon-768x405.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/24_4_11zon-48x25.webp 48w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p>Here you go! We have successfully installed the Composer on our system.<\/p>\n\n\n\n<h3 id='step-5-install-laravel'  id=\"boomdevs_8\" class=\"wp-block-heading\">Step 5: Install Laravel<\/h3>\n\n\n\n<p>We are done with all the installations and configurations. Now, our local environment is ready. We can install Laravel on it. Follow these instructions to install Laravel on your local environment.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Command Prompt and navigate to the htdocs directory within your XAMPP installation (e.g., `C:\\xampp\\htdocs`) using the cd command.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"376\" height=\"87\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25.webp\" alt=\"Navigation\" class=\"wp-image-69310\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25.webp 376w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25-300x69.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25-24x6.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25-36x8.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/25-48x11.webp 48w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Run the following command to create a new Laravel project:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project --prefer-dist laravel\/laravel new_project<\/code><\/pre>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replace `<strong>new_project<\/strong>` with your desired project name.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>While running the above command, you might get this error message.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"329\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-1024x329.webp\" alt=\"Error Message\" class=\"wp-image-69311\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-1024x329.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-300x96.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-768x247.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-24x8.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-36x12.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon-48x15.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/26_5_11zon.webp 1323w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>This error can arise if your zip extension file is not enabled or git is not installed.<\/li>\n\n\n\n<li>You can solve this issue by installing Git from its official site on your system and following the instructions in the official documentation.&nbsp;<\/li>\n\n\n\n<li>This error mainly occurs because the zip extension file is not enabled. So, let\u2019s solve this issue.<\/li>\n\n\n\n<li>Go to the C:\/xampp\/php\/ folder and locate the php.ini file.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-1024x551.webp\" alt=\"php.ini file\" class=\"wp-image-69312\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-1024x551.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-300x161.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-768x413.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-1536x827.webp 1536w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon-48x26.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/27_6_11zon.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>Right-click on this file and open it with the Notepad editor.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-1024x551.webp\" alt=\"Open in Notepad\" class=\"wp-image-69313\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-1024x551.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-300x161.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-768x413.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-1536x827.webp 1536w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-24x13.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-36x19.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon-48x26.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/28_7_11zon.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"9\">\n<li>Locate the extension=zip variable and remove the semicolon from the start.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/docsz\/AD_4nXehly7mM7cJHzJo8Dgz2ZAXP0PLAcj5UBufkeRalmVDQrnWrMdMU3G5ME9F0jKH8HdLOm5N0HTZ5Ou9pxoOJN6W5VzjGXC41100zj2BcGdDmRxxkU0i4Kj_j1PFCIXXiSdNT871IzIPb_2yj0kC5H7tKtXBvuBUIqWOO9BzC_tnXSEbGyPeoro?key=KFvwzM-UUpVMbZ6cWUL7TA\" alt=\"Remove semicolon\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\">\n<li>Save the file.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/docsz\/AD_4nXeWmFU-fYfSQoyY7-KFe0qS-rgMalWbwAi4t__sr2sTxrrvrNHpK3_77o3d5ZhkaHhuWyuuYwQOWd5NeqezSixQUyyeHK8i3bpz6yi9lWAoHAtOm1wzrCi6WULMPJWy1uvyEcVmdPtaRz2_KQF6tlXrvnWGl91zQRBQZMLqMdLYF_KW-1e6XQ?key=KFvwzM-UUpVMbZ6cWUL7TA\" alt=\"Removed semicolon\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"11\">\n<li>Now, restart your command prompt, navigate to the C:\\xampp\\htdocs folder, and run the composer create-project &#8211;prefer-dist laravel\/laravel new_project command again.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"987\" height=\"653\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon.webp\" alt=\"Navigate to laravel project directory\" class=\"wp-image-69316\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon.webp 987w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon-300x198.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon-768x508.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon-24x16.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon-36x24.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/31_10_11zon-48x32.webp 48w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"12\">\n<li>It will start downloading and installing Laravel locally on your system. You can see it\u2019s downloading and unpacking the necessary <a href=\"https:\/\/devrims.com\/blog\/best-laravel-packages\/\" target=\"_blank\" rel=\"noreferrer noopener\">Laravel packages<\/a> and dependencies.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"767\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon.webp\" alt=\"Installing Laravel\" class=\"wp-image-69317\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon.webp 791w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon-300x291.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon-768x745.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon-24x24.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon-36x36.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/32_11_11zon-48x48.webp 48w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"587\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-1024x587.webp\" alt=\"Laravel Installation\" class=\"wp-image-69318\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-1024x587.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-300x172.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-768x440.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-24x14.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-36x21.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon-48x28.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/33_12_11zon.webp 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"13\">\n<li>Wait for Composer to download and install all the required Laravel dependencies.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"759\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-1024x759.webp\" alt=\"Install Dependencies\" class=\"wp-image-69319\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-1024x759.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-300x222.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-768x569.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-24x18.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-36x27.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon-48x36.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/34_13_11zon.webp 1382w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"14\">\n<li>It is installed successfully. Now the installation is complete, navigate to the newly created project directory:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&nbsp;cd new_project<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"353\" height=\"89\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35.webp\" alt=\"Navigation\" class=\"wp-image-69321\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35.webp 353w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35-300x76.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35-24x6.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35-36x9.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/35-48x12.webp 48w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"15\">\n<li>Start the Laravel development server by running the following command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"158\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36.webp\" alt=\"Start Server\" class=\"wp-image-69322\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36.webp 576w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36-300x82.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36-24x7.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36-36x10.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/36-48x13.webp 48w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"16\">\n<li>You will see a message indicating the development server is running and providing a local URL (e.g., <a href=\"http:\/\/127.0.0.1:8000\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">http:\/\/127.0.0.1:8000<\/a>).<\/li>\n\n\n\n<li>Now, open your web browser and visit the provided URL or http:\/\/localhost\/new_project\/public to see the default Laravel welcome page.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"520\" src=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-1024x520.webp\" alt=\"Laravel Welcome Page\" class=\"wp-image-69323\" srcset=\"https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-1024x520.webp 1024w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-300x152.webp 300w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-768x390.webp 768w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-1536x780.webp 1536w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-24x12.webp 24w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-36x18.webp 36w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon-48x24.webp 48w, https:\/\/devrims.com\/blog\/wp-content\/uploads\/2024\/06\/37_14_11zon.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Congratulations! You have successfully installed Laravel on your local machine using XAMPP. You can now start developing your Laravel applications locally.<\/p>\n\n\n\n<h2 id='conclusion'  id=\"boomdevs_9\" class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In conclusion, this step-by-step guide provided detailed instructions for installing Laravel on a local development environment using XAMPP. By setting up a local host server, developers can safely test and experiment with Laravel&#8217;s features, streamline their workflow, and work on multiple projects simultaneously without affecting live applications. After following the steps to install XAMPP, configure it properly, create a database using phpMyAdmin, install Composer, and finally install Laravel itself, developers will have a fully functional local Laravel environment. This local setup allows for efficient development, debugging, and testing before deploying applications to a production server. With Laravel installed locally, developers can exploit its powerful capabilities and conveniently explore its vast collection of features and tools on their own machines.<\/p>\n\n\n\n<h4 id='related-topics'  id=\"boomdevs_10\" class=\"wp-block-heading\">Related Topics:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/devrims.com\/blog\/learn-laravel-free-paid-resources-websites\/\" target=\"_blank\" rel=\"noreferrer noopener\">Learn Laravel From These Free &amp; Paid Resources<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/laravel-collections-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">Laravel Collections \u2013 What are they? How to use them?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/how-to-create-ecommerce-website-using-laravel\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to create ecommerce website using Laravel?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devrims.com\/blog\/laravel-cron-job-task-scheduling\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use Laravel Cron Jobs?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is a robust open-source PHP web application framework that provides robust tools and an expressive architecture for building modern web applications. Developers widely adopt it due to its elegant syntax, extensive documentation, and vast community. While Laravel is designed for production environments, setting up a local development environment for testing and development purposes is [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":69645,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[50],"ad-banner":[86],"blog-popup":[81],"cta-banner":[],"class_list":["post-65354","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-laravel-development","ad-banner-laravel","blog-popup-app-laravel"],"acf":[],"_links":{"self":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/65354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/comments?post=65354"}],"version-history":[{"count":13,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/65354\/revisions"}],"predecessor-version":[{"id":69328,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/posts\/65354\/revisions\/69328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/media\/69645"}],"wp:attachment":[{"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/media?parent=65354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/categories?post=65354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/tags?post=65354"},{"taxonomy":"ad-banner","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/ad-banner?post=65354"},{"taxonomy":"blog-popup","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/blog-popup?post=65354"},{"taxonomy":"cta-banner","embeddable":true,"href":"https:\/\/devrims.com\/blog\/wp-json\/wp\/v2\/cta-banner?post=65354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}