/** * Total like of post * @author Tran Van Moi * @since 2015/05/21 * @param int $post_id * @return int */ public static function total_like($post_id) { return Like::wherePost_id($post_id)->count(); }