해외축구중계스포츠중계축구중계EPL중계스포츠무료중계실시간스포츠
{"id":1288,"date":"2021-02-09T11:06:38","date_gmt":"2021-02-09T11:06:38","guid":{"rendered":"https:\/\/www.wdb24.com\/?p=1288"},"modified":"2021-05-18T20:41:39","modified_gmt":"2021-05-18T20:41:39","slug":"laravel-tutorial-for-beginners-lets-understand-directory-structure","status":"publish","type":"post","link":"https:\/\/www.wdb24.com\/laravel-tutorial-for-beginners-lets-understand-directory-structure\/","title":{"rendered":"Laravel Tutorial for beginners – Let’s Understand Directory Structure"},"content":{"rendered":"\n

In my previous post, we have seen how to install Laravel on Windows using XAMPP<\/a>. In this tutorial we will see the directory structure of Laravel<\/strong>. Before jumping into the explanation let’s check how default laravel directory structure looks like.<\/p>\n\n\n\n

\"laravel<\/figure><\/div>\n\n\n\n

As you can see, there are 10 folders and 14 files (with different extension) in default Laravel folder structure. We will discuss each of them one by one.<\/p>\n\n\n\n

Laravel Directory Structure:<\/strong><\/h2>\n\n\n\n

App Directory:<\/strong><\/h3>\n\n\n\n

App directory is the heart of laravel application. Almost all of the classes of your application will fall under this directory. It is loaded by Composer<\/a> using PSR-4 autoloading standard<\/a>. App directory has also sub directories which you can see below.<\/p>\n\n\n\n

\"Laravel<\/figure><\/div>\n\n\n\n
    \n
  • Console Directory:<\/strong> This directory contains all of the custom Artisan commands. Usually these command can be generated by make:command<\/code><\/li>\n
  • Exception Directory:<\/strong> This directory contains the exception handling of your laravel application.<\/li>\n
  • HTTP Directory:<\/strong> This directory contains controller, middleware and form request.<\/li>\n
  • Models Directory:<\/strong> This directory contains all of your eloquent model classes (Laravel ORM). <\/li>\n
  • Providers Directory:<\/strong> This directory contains all of your service providers. Service providers load your application by adding services to the service container. Service providers also register events.<\/li>\n<\/ul>\n\n

    Above are the 5 default folders laravel comes with. But with the use php artisan make:command<\/code>, user can create other folders too.<\/p>\n\n\n\n

    <\/ins>