It retrieves the actual model related to your class with the boardable relation.
For example, if you have comments that can exists either in a post or in an image, you will have something like this:
class Image extends Model {
public function comments()
{
return $this->morphMany(Comment::class, 'commentable');
}
}
class Post extends Model {
public function comments()
{
return $this->morphMany(Comment::class, 'commentable');
}
}
class Comment extends Model {
public function commentable()
{
return $this->morphTo();
}
}
$comment->commentable(); // You will get the Post or the Image that this comment is related to.