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