trypost/app/Features/MemberLimit.php

16 lines
215 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace App\Features;
use App\Models\Account;
class MemberLimit
{
public function resolve(Account $scope): int
{
return $scope->plan?->member_limit ?? 1;
}
}