G
G
GrimJack2017-07-07 17:30:44
ORM
GrimJack, 2017-07-07 17:30:44

Is it possible to supplement the user model like this?

There are two tables users (standard laravel table with an additional role field) and users_data

users_data
h_1499437391_5735356_9d1b92668c.png

I want to get all its properties when requesting a user model.
That is, in addition to what the model gives by default, display more data (field_name => data) from the users_data table.
How can this be done and where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Night, 2017-07-07
@maxtm

Disclaimer - don't do it. Over time, shoot yourself in the foot with that decision.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question