1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Add likes() method to Status controller

This commit is contained in:
Daniel Supernault 2018-04-16 19:35:18 -06:00
parent 5d710d5574
commit 91dfc88a79

View file

@ -37,4 +37,9 @@ class Status extends Model
return url($url);
}
public function likes()
{
return $this->hasMany(Like::class);
}
}