小白兔晒黑了

导航

 
php artisan make:migration create_表名_table --create=表名 (创建数据填充文件)
1.验证信息并登陆:Auth::guard(参数)->attempt(用户名和密码数组,是否保存用户状态:true-,false-否)
2.检查状态:Auth::guard(参数)->check()
3.获得登陆用户:Auth::guard(参数)->user()->数据库字段
4.退出登录:Auth::guard(参数)->logout()
posted on 2019-10-18 14:55  小白兔晒黑了  阅读(139)  评论(0编辑  收藏  举报