The directories included are: 1. app directory; 2. bootstrap directory; 3. config directory; 4. database directory; 5. public directory; 6. resources directory; 7. routes directory; 8. storage directory ;9. Vendor directory, etc.
The operating environment of this tutorial: Windows 7 system, Laravel version 5, Dell G3 computer.
Directories included in the laravel project
The app directory is the core directory of the project, mainly used to store core code, including controllers and models, where
The model can also be managed in separate directories
Under this path is the controller, where Controller.php is the base class (parent class) controller
Auth is the default user authentication controller provided by the system
The controller can be managed in separate directories
##bootstrap directory
is the startup directory of laravelconfig directory
When creating a table, it needs to be created through a PHP file. Class to create, that is, create a class in migrations. This file is also called a migration file (create a data table file)
The entry file of the project (index.php) is placed in this file, which can be done A single entry file, in which the css and js files of later projects are placed in this directory.
#The lang directory is the language pack (if the project needs to be localized, you need to configure the language pack)
is the directory where routes are defined, where web.php is where routes are defined document.
storage directoryThe storage directory is the directory where cache files and log files are stored. If the files uploaded by the user are placed locally, It is also placed in storage.
Third-party content when stored
.env file
is to set some system-related environment configuration file information
artisan file
is a scaffolding file, mainly used for generated code (automatic generation), such as automatically generating controller and model files. When using artisan, you must ensure that artisan is in the current working path of the command line. (No need to modify, just use it).
Related recommendations: The latest five Laravel video tutorials
The above is the detailed content of What directories are included in the laravel project. For more information, please follow other related articles on the PHP Chinese website!