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); return url($url);
} }
public function likes()
{
return $this->hasMany(Like::class);
}
} }