[英]How to use laravel voyager for two different admin url?
Can i use laravel voyager for two different url admin? 我可以对两个不同的url管理员使用laravel voyager吗?
Sample Code
样例代码
Route::prefix('admin-1')->group(function() {
Voyager::routes();
});
Route::prefix('admin-2')->group(function() {
Voyager::routes();
});
I have tried this but the admin-2 always give me redirect to the admin-1 when login and execute menu in dashboard. 我已经尝试过了,但是admin-2总是在登录并执行仪表板中的菜单时始终重定向到admin-1。
You can consider defining different access roles for users in the roles bread instead of a different url. 您可以考虑在角色面包中为用户定义不同的访问角色,而不是其他URL。
If that doesn't suit your needs, then it's better making your own admin panel. 如果那不适合您的需求,那么最好自己制作一个管理面板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.