{"id":5386,"date":"2021-03-04T07:39:55","date_gmt":"2021-03-04T07:39:55","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=5386"},"modified":"2021-03-06T09:52:52","modified_gmt":"2021-03-06T09:52:52","slug":"setup-a-laravel-project-and-understand-the-folder-structure","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/","title":{"rendered":"Setup a Laravel Project and Understand the Folder Structure"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Setting up a Laravel project is an easy task.<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><br>We need to have the composer installed in our system. Then we need to download the Laravel installer, the command for installation is<br><em><strong>composer global require \u201claravel\/installer=~1.1\u201d<\/strong><\/em><br>if this does not works then we could just write<br><em><strong>composer global require \u201claravel\/installer\u201d<\/strong><\/em><br>and it would install the file.<br>Then we need to create a project and for this, we need to type<br><strong><em>composer create-project \u2013prefer-dist laravel\/laravel blog \u201c5.8\u201d<\/em><\/strong><br>if this does not works then we could just write<br><strong><em>composer create-project \u2013prefer-dist laravel\/laravel blog<\/em><\/strong><br>it would create a Laravel project named blog.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Soon after the project is created we now have to <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Understanding the Folder structure<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The most important thing in the Laravel project is understanding the structure of files and folders. Understanding the files and folder structure\u2019s <em>main purpose is to understand where we need to write codes for Html, Model, Controller, Routing, Filestore, Config, and Database.<br><\/em>The time after the Laravel project is created we see different folders and files. All the files and folder build while building the project have their use and gives it easy access while writing codes.<br>The main folder in the project consists of<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png\" alt=\"\" class=\"wp-image-5389\" width=\"149\" height=\"226\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Let\u2019s take a brief look at the different folders created and the files in them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>The first one <em><strong>App <\/strong><\/em>mainly includes codes for <strong>HTML, Model, and Controller<\/strong> which are in folders shown below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-2.png\" alt=\"\" class=\"wp-image-5390\" width=\"133\" height=\"139\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><br>In the <strong><em>console<\/em><\/strong> directory, there is a <em>kernel.php<\/em> file that has codes for the custom command. <br><em>Exception <\/em>folders have <em>handler.php<\/em> that includes all the codes for different exceptions.<br>The <em>HTTP <\/em>folder has 2 sub-folders namely <em>controllers<\/em> and <em>middleware<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-5.png\" alt=\"\" class=\"wp-image-5401\" width=\"239\" height=\"392\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-5.png 319w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-5-183x300.png 183w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><em>Controllers <\/em>and <em>Middleware <\/em>mainly include files acting as a bridge between database and webpage. These include files for <em>authentication login validation, registering ids, resetting the password<\/em>, etc.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><em>Cookies <\/em>that are used to store some data of the user are also managed here. <em>Controllers <\/em>act as an interface between database and web-page and <em>Middleware <\/em>filters out the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <em><strong>Model<code> <\/code><\/strong><\/em>directory contains all of your&nbsp;model classes. It provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding &#8220;Model&#8221; which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we have a <em><strong>Provider <\/strong><\/em>directory.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-6.png\" alt=\"\" class=\"wp-image-5402\" width=\"290\" height=\"141\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-6.png 386w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-6-300x146.png 300w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">where we write different kinds of services like authentication services, routing services, and more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we have <strong><em>Bootstrap <\/em><\/strong>directory that has an <em>app.php <\/em>file that helps in bootstrapping the application i.e loading the application on the browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we have a <em><strong>config <\/strong><\/em>directory that contains all the configuration files like database configurations, email configurations, session configurations, login configurations, catch configurations, and many more.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-7.png\" alt=\"\" class=\"wp-image-5403\" width=\"216\" height=\"326\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-7.png 288w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-7-199x300.png 199w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>database <\/em><\/strong>directory mainly includes three folders i.e<em> factories, migrations, <\/em>and <em>seed<\/em>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-8.png\" alt=\"\" class=\"wp-image-5404\" width=\"332\" height=\"160\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-8.png 442w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-8-300x145.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Factories&nbsp;<\/em>provide&nbsp;a&nbsp;convenient&nbsp;way&nbsp;to&nbsp;generate&nbsp;new&nbsp;model&nbsp;instances&nbsp;for&nbsp;  testing\/seeding the&nbsp;application&#8217;s&nbsp;database.                                                                                                  In <em>Migrations, <\/em>one database is shared with another database and also between developers.                                                                                                                                          <em>Seeding <\/em>simply means putting the fake\/dummy data in the database. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>public <\/em><\/strong>directory <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-9.png\" alt=\"\" class=\"wp-image-5405\" width=\"269\" height=\"156\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-9.png 359w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-9-300x174.png 300w\" sizes=\"auto, (max-width: 269px) 100vw, 269px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">has <em>CSS, js<\/em>, and more files that have predefined JavaScript and CSS of the project and most importantly <em>index.php<\/em> file. This is the first file that is loaded in the browser when our server (local server) is hosted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>resource <\/em><\/strong>directory <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-10.png\" alt=\"\" class=\"wp-image-5406\" width=\"265\" height=\"135\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-10.png 353w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-10-300x153.png 300w\" sizes=\"auto, (max-width: 265px) 100vw, 265px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">is the important part where all the public files of HTML, CSS, js files are coded and sometimes local files. This directory most importantly  includes <em>views <\/em>where we write the complete HTML. All the HTML pages that we want to display shall be placed here. These files can be placed directly or can placed inside the folder in views.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>route <\/em><\/strong>directory&#8217;s main purpose is placing the codes for URLs for the web as well as API.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-12.png\" alt=\"\" class=\"wp-image-5408\" width=\"290\" height=\"134\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-12.png 387w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-12-300x138.png 300w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<strong><em>storage <\/em><\/strong>directory contains the <em>app, framework<\/em>, and <em>log <\/em>directory. The <em>storage&nbsp;<\/em>directory is used to store framework-generated files and <em>caches<\/em>. They also contain compiled <em>Blade <\/em>templates, file-based <em>sessions, <\/em>file <em>caches<\/em>, and other files generated by the framework and the log<em> <\/em>directory contains your application&#8217;s log files.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-14.png\" alt=\"\" class=\"wp-image-5410\" width=\"326\" height=\"239\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-14.png 435w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-14-300x220.png 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>test&nbsp;<\/em><\/strong>directory contains automated tests. We may run tests using the&nbsp;<code><em>phpunit<\/em><\/code>&nbsp;or<em>&nbsp;<code>php vendor\/bin\/phpunit<\/code><\/em>&nbsp;commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Vendor <\/em><\/strong>directory stores all the package files which are installed by the composers.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-13.png\" alt=\"\" class=\"wp-image-5409\" width=\"248\" height=\"452\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-13.png 331w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-13-165x300.png 165w\" sizes=\"auto, (max-width: 248px) 100vw, 248px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"> In simple terms, the <em><strong>vendor <\/strong><\/em>directory acts as a store-keeper for all the package files for the project in laravel. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We have few more files that are necessary like environment file (<em>env.php<\/em>), composer file (<em>composer.json<\/em>), package file (<em>package.json<\/em>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We use <em>webpack.mix.js<\/em> for integration of CSS and js files from different developers for effective use. It also serves as a better security for CSS and js files  in the project so that it cannot be publicly accessed. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up a Laravel project is an easy task. We need to have the composer installed in our system. Then [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5049,156],"tags":[5065,5061,5063,5064,5066,5060,5058],"class_list":["post-5386","post","type-post","status-publish","format-standard","hentry","category-laravel","category-websites","tag-files-and-folder-in-laravel","tag-folder-structure-2","tag-laravel-project","tag-laravel-project-and-folder-structure","tag-project-setup-in-laravel","tag-setup-laravel-project","tag-understand-folder-structure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setup a Laravel Project and Understand the Folder Structure - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup a Laravel Project and Understand the Folder Structure - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Setting up a Laravel project is an easy task. We need to have the composer installed in our system. Then [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-04T07:39:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-06T09:52:52+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png\" \/>\n<meta name=\"author\" content=\"abhishek k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"abhishek k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/\"},\"author\":{\"name\":\"abhishek k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\"},\"headline\":\"Setup a Laravel Project and Understand the Folder Structure\",\"datePublished\":\"2021-03-04T07:39:55+00:00\",\"dateModified\":\"2021-03-06T09:52:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/\"},\"wordCount\":821,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-1.png\",\"keywords\":[\"files and folder in laravel\",\"folder structure&#039;\",\"laravel project\",\"laravel project and folder structure\",\"project setup in laravel\",\"setup Laravel project\",\"understand folder structure\"],\"articleSection\":[\"Laravel\",\"Websites\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/\",\"name\":\"Setup a Laravel Project and Understand the Folder Structure - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-1.png\",\"datePublished\":\"2021-03-04T07:39:55+00:00\",\"dateModified\":\"2021-03-06T09:52:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-1.png\",\"contentUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/setup-a-laravel-project-and-understand-the-folder-structure\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup a Laravel Project and Understand the Folder Structure\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\",\"name\":\"abhishek k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"caption\":\"abhishek k\"},\"description\":\"Abhishek is a full-stack developer that provides the solution for the design and analysis of Website and Mobile Application. Expertise in HTML, CSS, JAVASCRIPT, LARAVEL.\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/abhishek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup a Laravel Project and Understand the Folder Structure - scmGalaxy","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:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/","og_locale":"en_US","og_type":"article","og_title":"Setup a Laravel Project and Understand the Folder Structure - scmGalaxy","og_description":"Setting up a Laravel project is an easy task. We need to have the composer installed in our system. Then [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/","og_site_name":"scmGalaxy","article_published_time":"2021-03-04T07:39:55+00:00","article_modified_time":"2021-03-06T09:52:52+00:00","og_image":[{"url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png","type":"","width":"","height":""}],"author":"abhishek k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"abhishek k","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/"},"author":{"name":"abhishek k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6"},"headline":"Setup a Laravel Project and Understand the Folder Structure","datePublished":"2021-03-04T07:39:55+00:00","dateModified":"2021-03-06T09:52:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/"},"wordCount":821,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png","keywords":["files and folder in laravel","folder structure&#039;","laravel project","laravel project and folder structure","project setup in laravel","setup Laravel project","understand folder structure"],"articleSection":["Laravel","Websites"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/","name":"Setup a Laravel Project and Understand the Folder Structure - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png","datePublished":"2021-03-04T07:39:55+00:00","dateModified":"2021-03-06T09:52:52+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#primaryimage","url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png","contentUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/setup-a-laravel-project-and-understand-the-folder-structure\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Setup a Laravel Project and Understand the Folder Structure"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6","name":"abhishek k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","caption":"abhishek k"},"description":"Abhishek is a full-stack developer that provides the solution for the design and analysis of Website and Mobile Application. Expertise in HTML, CSS, JAVASCRIPT, LARAVEL.","url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/abhishek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=5386"}],"version-history":[{"count":11,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5386\/revisions"}],"predecessor-version":[{"id":5443,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5386\/revisions\/5443"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=5386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=5386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=5386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}