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

自己尝试性写了一个菜单提示无权访问 #8

Open
deydgo opened this issue Aug 29, 2019 · 2 comments
Open

自己尝试性写了一个菜单提示无权访问 #8

deydgo opened this issue Aug 29, 2019 · 2 comments

Comments

@deydgo
Copy link

deydgo commented Aug 29, 2019

一个菜单,两个二级菜单分别指向了两个页面,权限里也给超级管理员权限了,路由也配置了,指向页面就提示无权限访问,,,是不是有bug啊??

@fushenxi
Copy link

这个功能没有bug、 亲测有效,多半路由配置不对

Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => ['auth', 'permission:resume']], function (){
    //简历展示
    Route::group(['middleware' => 'permission:resume.resume'], function () {
        Route::get('resume', 'ResumeController@resume')->name('admin.resume');
    });
});

@wcc4869
Copy link

wcc4869 commented Jul 13, 2020

只有一级菜单的时候,跳转链接不起作用,我看这个地方没连接,请问应该如何解决啊,还有就是这里的menu没找到是在哪个控制器里的

image-20200713132126602

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

3 participants