Webhook作成数を制限

This commit is contained in:
shibafu
2020-07-23 22:36:08 +09:00
parent 08e12cd218
commit 059c6d69cf
3 changed files with 23 additions and 10 deletions

View File

@@ -7,6 +7,9 @@ use Illuminate\Support\Str;
class CheckinWebhook extends Model
{
/** @var int ユーザーごとの作成数制限 */
const PER_USER_LIMIT = 10;
public $incrementing = false;
protected $keyType = 'string';