{"id":2061,"date":"2020-02-05T06:57:19","date_gmt":"2020-02-05T06:57:19","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=2061"},"modified":"2023-02-07T11:13:26","modified_gmt":"2023-02-07T11:13:26","slug":"how-to-install-laravel-on-windows-10","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/","title":{"rendered":"How to install Laravel on Windows 10?"},"content":{"rendered":"<h2>Below are the steps for installing Laravel and setup of laravel on Windows 10 using Xampp:<\/h2>\n<p>1. <strong>Install Xampp:<\/strong> Xampp is a free and easy to install apache distribution containing PHP and<br \/>\nMySQL.<\/p>\n<p>Here is the link to install Xampp:<br \/>\nIf you are using an operating system with 64-bit architecture then download and install Xampp<br \/>\nfrom this link<\/p>\n<p><a href=\"https:\/\/www.apachefriends.org\/download.html\">https:\/\/www.apachefriends.org\/download.html<\/a><\/p>\n<p>If you are using an operating system with 32- bit architecture then download and install Xampp from these links<\/p>\n<ul>\n<li>Windows XAMPP 7.3.2 (32-bit)<\/li>\n<li>Windows XAMPP 5.6 (32-bit)<\/li>\n<\/ul>\n<p>Download the latest version.<br \/>\nBelow are some of the screenshots of the installation process.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2065\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows1.png\" alt=\"laravel on windows 1\" width=\"669\" height=\"571\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows1.png 669w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows1-300x256.png 300w\" sizes=\"(max-width: 669px) 100vw, 669px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2066\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows2.png\" alt=\"laravel on windows 2\" width=\"662\" height=\"574\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows2.png 662w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows2-300x260.png 300w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2067\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows3.png\" alt=\"laravel on windows 3\" width=\"702\" height=\"512\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows3.png 702w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows3-300x219.png 300w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/p>\n<p>2. <strong>Now start Apache and MySQL<\/strong> as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2068\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows4.png\" alt=\"\" width=\"768\" height=\"505\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows4.png 768w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows4-300x197.png 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows4-120x80.png 120w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>3. <strong>Install Composer<\/strong> &#8211; We need to install a composer before installing laravel because it is an application-level package manager.<br \/>\nDownload composer-setup.exe file from this link and install it:<\/p>\n<p><a href=\"https:\/\/getcomposer.org\/doc\/00-intro.md\">https:\/\/getcomposer.org\/doc\/00-intro.md<\/a><\/p>\n<p>4. <strong>Install laravel<\/strong> &#8211; Install laravel on Windows system using the composer. For this run the below command in the command prompt<\/p>\n<p>composer global require &#8220;laravel\/installer&#8221;<\/p>\n<p>5. <strong>Creating a new application<\/strong> &#8211; After successful installation, we can create a new app with this command<\/p>\n<p>composer create-project &#8211;prefer-dist laravel\/laravel NewProject1<\/p>\n<p>6. <strong>Create a database<\/strong> &#8211; Create a database for your project in your MySQL server using PHPMyAdmin.<\/p>\n<ul>\n<li>Open the link below. http:\/\/localhost\/phpmyadmin<\/li>\n<li>Now Enter username and password (As a default, the username will be root password will be empty).<\/li>\n<li>Click on the New tab<\/li>\n<li>Enter a database name and then create the database<\/li>\n<\/ul>\n<p>7. <strong>Modify ENV file<\/strong> &#8211; Goto the .env file inside the root file of your project and add database details as shown below:<br \/>\nDB_DATABASE=(The database name you created earlier &#8211; new_project_db)<br \/>\nDB_USERNAME=(Your MySQL username. Default: root)<br \/>\nDB_PASSWORD=(Your Mysql password. As a default, blank)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2069\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows5.png\" alt=\"laravel on windows 5\" width=\"627\" height=\"421\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows5.png 627w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows5-300x201.png 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravelonwindows5-120x80.png 120w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>8. <strong>Import database<\/strong> &#8211; You can import the database if you have any previous backup.<\/p>\n<p>9. <strong>Running the application<\/strong> &#8211; Type the below command to run the application<br \/>\nPHP artisan serve<br \/>\nAfter this home page of the application will open in a new tab with URL<br \/>\nhttp:\/\/localhost:8000 (default port)<br \/>\nIf user wants to use some other port to run the application then the user can type the below command for this:<br \/>\nPHP artisan serve &#8211;port=9000<br \/>\nThis will open our application in port 9000<\/p>\n<p><small>jQuery allows the user to create powerful and dynamic webpages that run without any hiccup. With StudySection, you have the liberty to choose among beginner or expert level <a href=\"https:\/\/www.studysection.com\/jquery-foundation\">jQuery certification exam<\/a> to help you excel in this career field.<br \/>\n<\/small><\/p>\n<p><script>\njQuery(\"#top-view-post\").text('Attempt Laravel Test Now');\njQuery(\"#top-view-post\").attr(\"href\", \"https:\/\/www.studysection.com\/laravel7.x-certification-exam-foundation\");\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below are the steps for installing Laravel and setup of laravel on Windows 10 using Xampp: 1. Install Xampp: Xampp<\/p>\n","protected":false},"author":1,"featured_media":2076,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[355,65,104],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>StudySection Blog - How to install Laravel on Windows 10?<\/title>\n<meta name=\"description\" content=\"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"StudySection Blog - How to install Laravel on Windows 10?\" \/>\n<meta property=\"og:description\" content=\"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-05T06:57:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-07T11:13:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravel-blog.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"160\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"How to install Laravel on Windows 10?\",\"datePublished\":\"2020-02-05T06:57:19+00:00\",\"dateModified\":\"2023-02-07T11:13:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\"},\"wordCount\":423,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"installation\",\"laravel\",\"windows\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\",\"url\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\",\"name\":\"StudySection Blog - How to install Laravel on Windows 10?\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2020-02-05T06:57:19+00:00\",\"dateModified\":\"2023-02-07T11:13:26+00:00\",\"description\":\"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Laravel on Windows 10?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"StudySection Blog - How to install Laravel on Windows 10?","description":"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/","og_locale":"en_US","og_type":"article","og_title":"StudySection Blog - How to install Laravel on Windows 10?","og_description":"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.","og_url":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2020-02-05T06:57:19+00:00","article_modified_time":"2023-02-07T11:13:26+00:00","og_image":[{"width":300,"height":160,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/02\/laravel-blog.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"How to install Laravel on Windows 10?","datePublished":"2020-02-05T06:57:19+00:00","dateModified":"2023-02-07T11:13:26+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/"},"wordCount":423,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["installation","laravel","windows"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/","url":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/","name":"StudySection Blog - How to install Laravel on Windows 10?","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2020-02-05T06:57:19+00:00","dateModified":"2023-02-07T11:13:26+00:00","description":"Setup of laravel on Windows 10 using Xampp. Xampp is a free and easy to install apache distribution containing PHP and MySQL.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/how-to-install-laravel-on-windows-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Laravel on Windows 10?"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":5448,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/2061"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=2061"}],"version-history":[{"count":9,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/2061\/revisions"}],"predecessor-version":[{"id":6449,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/2061\/revisions\/6449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/2076"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=2061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=2061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=2061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}