Skip to content
Discussion options

You must be logged in to vote

@Bekzhan99 you are using two distinct events types, you can use any of them, but both of them is overkill I think.

From your example, if you want is to the user to be able to select a language and a level for that language, I think you should be doing the following:

Create a table with all the languages (create a migration and a seeder to seed all the languages in a table in the database). Create a new table where you will hold the relation with user/languages like languages_user with columns: user_id, language_id, level. Configure the relations in user and language models, they should be belongsToMany. Use a repeatable field in the user controller (or where you want to select the languag…

Replies: 0 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Bekshakx
Comment options

@Bekshakx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jcastroa87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants