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