Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装这个扩展后,怎样去掉一个页面的菜单和头部? #31

Open
qingliangguo123 opened this issue Oct 17, 2019 · 3 comments

Comments

@qingliangguo123
Copy link

我想在点击某个菜单的时候,在显示这个页面的时候隐藏掉菜单和头部。怎么实现呢?求解。

@ichynul
Copy link
Owner

ichynul commented Oct 18, 2019

你再说清楚一点,菜单和头部是哪个地方的。
$content->header();
$content->description();
$content->breadcrumb();
不知道你指的是不不是这些。
https://laravel-admin.org/docs/zh/content-layout

@qingliangguo123
Copy link
Author

就是
图片标红的部分都隐藏。

@ichynul
Copy link
Owner

ichynul commented Oct 18, 2019

左边的菜单隐藏,可以通过配置:
/config/admin.php

'layout' => ['sidebar-mini', 'sidebar-collapse'],//修改这个布局

至于右边的,那个搜索框我以前没见过啊,最近没怎么关注laravel-admin,是不是改了。
[home]那个是 tab控制,你想隐藏吗?你隐藏这个就违背了使用这个扩展的初衷了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants