You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Task model with the columns created_by, assigned_to. These columns are mapped to the users table via the hasOne relationship.
(ie)
public function assignedTo()
{
return $this->belongsTo(User::class, 'assigned_to');
}
public function createdBy()
{
return $this->belongsTo(User::class, 'created_by');
}
I want to display these in columns and search by the name column on the users table.
This discussion was converted from issue #827 on January 21, 2023 20:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a
Task
model with the columnscreated_by
,assigned_to
. These columns are mapped to theusers
table via the hasOne relationship.(ie)
I want to display these in columns and search by the
name
column on theusers
table.How do i go about doing this?
Beta Was this translation helpful? Give feedback.
All reactions