saqib/rfpl-laravel

为 Laravel 定制的 RFPL 包

v1.2.5 2020-01-30 10:20 UTC

This package is auto-updated.

Last update: 2024-09-29 05:35:55 UTC


README

响应先处理后包,适用于 Laravel

#使用方法

$rfpl = new RfplLaravel\CacheService;
try {
    $rfpl->handle();
} catch (\Exception $th) {
    //throw $th;
}    

要忽略路由,只需传递一个路由模式数组

$rfpl = new RfplLaravel\CacheService([
    'test',
    'abx\*',
    '*\abc',
    'xyz\lmn'
]);
try {
    $rfpl->handle();
} catch (\Exception $th) {
    //throw $th;
}