ValidationData

ValidationData

class ValidationData (View source)

Methods

static initializeAndGatherData($attribute, $masterData)

No description

static array extractDataFromPath(string $attribute, array $masterData)

Extract data based on the given dot-notated path.

static string getLeadingExplicitAttributePath(string $attribute)

Get the explicit part of the attribute name.

Details

static initializeAndGatherData($attribute, $masterData)

Parameters

$attribute
$masterData

static array extractDataFromPath(string $attribute, array $masterData)

Extract data based on the given dot-notated path.

Used to extract a sub-section of the data for faster iteration.

Parameters

string $attribute
array $masterData

Return Value

array

static string getLeadingExplicitAttributePath(string $attribute)

Get the explicit part of the attribute name.

E.g. 'foo.bar.*.baz' -> 'foo.bar'

Allows us to not spin through all of the flattened data for some operations.

Parameters

string $attribute

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Validation/ValidationData.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部