public static function comments($type = null, $data = null) { if ($type and $data) { return Post_Comment::where($type, $data)->get(); } return Post_Comment::all(); }