[Solved] Laravel: Create tables with variable in name


“Now i need a table for each user where i can store something like a CV.. Date begin, date end, City etc”

Sounds like you need another table with a 1:1 relationship to the users table

Your new table will look something like

tblFurtherUserInfo
FurtherUserInfoId
CV
DateBegin
DateEnd
City

You should add a new row to this table and set FurtherUserInfoID to be the same as the userID in your user table. You should do this whenever you add a record to your user table

EDIT

Now I know a user can have more than one CV, you need a new table as follows

tblCV
CVId
UserId
CV
DateBegin
DateEnd
City

This is a 1 user : many CVs relationship

4

solved Laravel: Create tables with variable in name