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?

WBOY
Release: 2016-08-04 09:22:18
Original
1741 people have browsed it

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>
Copy after login

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?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template