Skip to content

Commit

Permalink
chore: added isLinedToUser attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Feb 29, 2024
1 parent 6da50d2 commit 81c4477
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Marker.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ public function user()
return $this->belongsTo(\App\Models\User::class);
}

public function getIsLinkedToUserAttribute()
{
return !!$this->user_id;
}

/**
* Get the X attribute.
*
Expand Down

0 comments on commit 81c4477

Please sign in to comment.