value('rules'); return $rules; } public static function getProtectCountById($id) { $protect_count = self::where('id',$id) ->value('protect_count'); return $protect_count; } }