-
Notifications
You must be signed in to change notification settings - Fork 53
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
有几点实际使用中的疑问or bug #1
Comments
原本上是这么设计的,明天我看一下 |
app/Http/Controllers/Auth/RegisterController.php /**
* The user has been registered.
*
* @param \Illuminate\Http\Request $request
* @param mixed $user
* @return mixed
*/
protected function registered(Request $request, $user)
{
$role_user = Role::where(['name' => 'user'])->first();
$user->attachRole($role_user);
if ($user->hasRole('user')) {
return false;
}
return true;
} |
第二点你可以在用户的用户组里面设置一下权限,取消勾选后台首页 |
member/index 是我写的一个小前台会员中心 |
5000个用户,在用户管理里面翻页 本地测试要13秒左右,查询语句是不是能优化下? |
恩好的,回头检查一下,具体怎么操作的呢 |
我用factory创建了5000个用户 然后在后台里面的用户管理列表里面翻页 翻页一次10几秒才能正常加载出来 |
这是有点过分,回头我试一下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks
The text was updated successfully, but these errors were encountered: