2
当用户成功登录时,我想在表格中保存日志寄存器logs_users
。为了使这个,logs_users表有下一个字段:Laravel 5.4保存上次登录日志表
+id
+user_id: Id of the user
+log_id :Number that represents the log(in this case, the number is 2)
+created_at
我不明白我怎么可以使用laravel 5.4的事件,所以如果你能告诉我的步骤,我会感谢你
是的,我定义了关系。这工作! – Aceconhielo
请在LogsUser中显示创建函数 –