請讓我在My Laravel和Vue SPA項目中獲得一些幫助和問題。我正在使用(Vue SPA)和Laravel Voyager進行管理。當我想使用轉到管理面板時出現問題:/admin面板未顯示。這是我的路線/網站.php<?phpRoute::get('/{any}', 'CodeCommunityController@index')->where('any', '^(?!api).*$');Route::get('/home', 'HomeController@index')->name('home');Auth::routes();Route::group(['prefix' => 'admin'], function () { Voyager::routes();});請幫助伙計們,謝謝你們。
1 回答

呼啦一陣風
TA貢獻1802條經驗 獲得超6個贊
我有同樣的問題,我所做的只是將管理路由移動到任何*路由之上。
Route::group(['prefix' => 'admin'], function () {
Voyager::routes();
});
Route::get('/{any}', 'CodeCommunityController@index')->where('any', '^(?!api).*$');
Route::get('/home', 'HomeController@index')->name('home');
Auth::routes();
- 1 回答
- 0 關注
- 81 瀏覽
添加回答
舉報
0/150
提交
取消