简体   繁体   中英

Adding custom menu page in Voyager admin panel gives 404

I have installed laravel 5.4 and Voyager 1.0.17

In the settings->menu builder->admin i'm adding new menu. Then adding resources/views/vendor/testpage/browse.blade.php

And once I click on the menu/testpage i'm getting 404.

If I'm changing one of existing pages (categories, posts) same way (adding to .../vendor/posts/browse.blade.php its working well, but not the any other custom page.

Ive searched for a while now, but there is no solution for this.

Please advice. Thanks a lot.

Update: screenshots added:

菜单生成器

浏览量测试页

I am writing an example for you to make changes according to your needs.

add this route in web.php below routes folder :

Route::get('test', function(){
      return view('test');
    });

create test.blade.php in resources>views folder whit this code example:

@extends('voyager::master')




  <h1>This is awesome!!</h1>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM