Home>Article>PHP Framework> Which directory is the laravel view in?

Which directory is the laravel view in?

青灯夜游
青灯夜游 Original
2021-09-24 13:59:04 3274browse

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).

Which directory is the laravel view in?

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.

Which directory is the laravel view in?

  • 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. :

      Laravel

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn