Home >Backend Development >PHP Tutorial >In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-08-04 09:22:181779browse

How to change this setting in view.php?
In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

Reply content:

How to change this setting in view.php?
In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

This configuration item refers to the relative position of all view files.

For example, view('admin.host'); will get resources/views/admin/host.php

Please read the document carefully, thank you.

Are the following methods feasible? Don't touch view.php. This configuration item refers to the relative position of all view files.
1. Design a directory structure to complete by yourself
In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

2.

<code>public function index()
{
    return view('Admin.Nodes.index');
}
</code>

3.Access address
In laravel, I want to specify the Home directory in views for the front-end view directory and Admin for the back-end. What is this setting?

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