Skip to content

Commit 6952e55

Browse files
committed
❌ Removes unnecessary methods from Bookmark model
1 parent ba6b95e commit 6952e55

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

app/Bookmark.php

-20
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,4 @@ public function profile()
3030
return $this->belongsTo(Profile::class, 'userable_id');
3131
}
3232

33-
/**
34-
* This belongs to one user.
35-
*
36-
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
37-
*/
38-
public function user()
39-
{
40-
return $this->belongsTo(User::class, 'user_id');
41-
}
42-
43-
/**
44-
* Bookmark belongs to a given user
45-
*
46-
* @param User $user
47-
* @return bool
48-
*/
49-
public function ownerIs(User $user): bool
50-
{
51-
return $this->user_id === $user->id;
52-
}
5333
}

0 commit comments

Comments
 (0)