laravel5.5 Auth门脸类认证

1 配置
laravel5.5 Auth门脸类认证
常用门脸方法Auth::attempt(["email"=>"111","pass"=>"1111"],is_remember)
匹配User模型 通过则登录成功
获取用户 $user=Auth::user(); 获取用户id $user=Auth::id()

猜你喜欢

转载自blog.51cto.com/13708834/2165641