| 1 | <?php |
||
| 7 | trait FloodGate |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Check whatever the user is flooding or not. |
||
| 11 | * |
||
| 12 | * @param \Xetaravel\Models\User $user The user to check. |
||
| 13 | * @param string $rule The configuration rule to use. |
||
| 14 | * |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public static function isFlooding(User $user, string $rule = 'xetaravel.flood.general'): bool |
||
| 29 | } |
||
| 30 |