Home > Article > PHP Framework > Which directory is the laravel view in?
Laravel views are in the views directory in the Resources directory. The resource directory contains application view files, uncompiled native front-end resource files, and localized language files; the views directory in this directory is the view directory, which is the view file storage directory (view files can also be managed in sub-directories).
The operating environment of this tutorial: Windows 7 system, Laravel version 5, Dell G3 computer.
Laravel views are in the views directory in the Resources directory.
resources directory
The resources directory contains application view files and uncompiled native front-end resource files (LESS, SASS, JavaScript), as well as localized language files.
This directory is also a very important directory. It stores resource files, including our view layer, which is also stored here. So this directory implements the role of the view layer in our MVC. The main directory studied in this directory is the view directory.
The lang directory is the language pack (if the project needs to be localized, you need to configure the language pack)
views is the view directory, which is the view file storage directory (view files can also be managed in sub-directories)
is to open the view directory and we can see some php files. Let’s observe one first. :
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title>
Only part of it is intercepted here, indicating that the view layer is stored here, which is what is presented to the user.
Related recommendations: The latest five Laravel video tutorials
The above is the detailed content of Which directory is the laravel view in?. For more information, please follow other related articles on the PHP Chinese website!