Possible to concatenate related model attributes? #1167
Answered
by
polycode-nz
polycode-nz
asked this question in
Q&A
-
My User model has first_name, last_name. Is it possible to concatenate the two attributes in the log? This works: Obviously only logs the first name. I have a public accessor errors with: App\Models\User::getFullName must return a relationship instance. |
Beta Was this translation helpful? Give feedback.
Answered by
polycode-nz
Feb 19, 2023
Replies: 1 comment
-
Went around it by using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
polycode-nz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Went around it by using
tapActivity()