多形式向导在 Laravel 中保存数据并存储会话?
我需要使用(多表单向导或步进器)设计一个表单,将数据保存在不同的表中,假设用户填写了三个表单并将数据保存在三个不同的表中,下次用户登录表单应从第四阶段开始,并且用户还可以编辑保存表单,表格不同,它不保存在一张表格中如何在laravel中设计这样的多表格?
谢谢
I need to design a form using (multiform wizard or stepper) that saves Data in different tables, Suppose a user fills three forms and saves the data in three different tables, the next time the user login the form should start from the 4th stage, and the user can also edit the save form, the tables are different it does not save in one table how to design such multiform in laravel?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
例如,您创建了 4 页的形式。
当用户填写最多 2 个表格并存储在 2 个表中时。
现在,当用户注销并再次回来时。您必须在数据库中检查用户数据是否已输入表中。
如果已输入,则您必须以编辑模式打开该表单并跳过加载该页面。如果表中缺少该条目,则您必须在创建模式下打开该表单,并将该页面显示为活动页面。
For example you created form of 4 pages.
When user filled up to 2 form and it stores in 2 tables.
Now when user logged out and came back again. U will have to check in DB weather the user's data was entered in table or not .
If it was entered then u must open that form as edit mode and skip to load that page. If the entry is missing in the table then you have to open that form in create mode with showing that page as active.