Php 我如何与(Laravel voyager)和(Vue SPA)合作?

Php 我如何与(Laravel voyager)和(Vue SPA)合作?,php,laravel,vue.js,voyager,Php,Laravel,Vue.js,Voyager,请对我的Laravel and Vue SPA项目中的问题提供帮助 我正在使用(Vue SPA)和Laravel Voyager进行管理 当我想使用:/admin转到管理面板时出现的问题面板未显示 这是我的路由/web.php <?php Route::get('/{any}', 'CodeCommunityController@index')->where('any', '^(?!api).*$'); Route::get('/home', 'HomeController@ind

请对我的Laravel and Vue SPA项目中的问题提供帮助

我正在使用(Vue SPA)Laravel Voyager进行管理

当我想使用:/admin转到管理面板时出现的问题面板未显示

这是我的路由/web.php

<?php

Route::get('/{any}', 'CodeCommunityController@index')->where('any', '^(?!api).*$');
Route::get('/home', 'HomeController@index')->name('home');
Auth::routes();

Route::group(['prefix' => 'admin'], function () {
    Voyager::routes();
});

我也有同样的问题,我所做的就是将管理路由移到any*路由之上

Route::group(['prefix' => 'admin'], function () {
    Voyager::routes();
});
Route::get('/{any}', 'CodeCommunityController@index')->where('any', '^(?!api).*$');
Route::get('/home', 'HomeController@index')->name('home');
Auth::routes();

尝试将“管理”路径移动到“任何”上方,这将覆盖“/任何”我该怎么做我的朋友你能帮我更改它吗请回答一个问题当我登录到“管理”面板时,它会将我重新定向到主页(/)通常会将我重定向到(管理)仪表板。你可以看到这个问题,请检查这里