Негативное целочисленное валидация Laravel
namespace Modules\RewardPoint\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UserPointsUpdateRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'points' => 'required|numeric|gt:0'
];
}
}
Sharifur Robin