fangxu/safety-inspection

donews safety inspection

v1.3 2018-10-08 07:48 UTC

This package is auto-updated.

Last update: 2024-04-29 04:15:01 UTC


README

example:

Route::get("/inspection", function (Fangxu\SafetyInspection\SafetyInspection $inspection) {
    $inspection->text("新年快乐", function ($result) {
        if ($result->suggestion != "pass") {
            throw new \Exception("内容中含有不合法的字段", "405");
        }
    });
});