master

laravel/framework

Last updated at: 29/12/2023 09:21

DataAwareRule.php

TLDR

This file defines the DataAwareRule interface, which is used to set the data under validation.

Methods

setData

Sets the data under validation.

END

<?php

namespace Illuminate\Contracts\Validation;

interface DataAwareRule
{
    /**
     * Set the data under validation.
     *
     * @param  array  $data
     * @return $this
     */
    public function setData(array $data);
}