Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
spatie
/
laravel-data
/
src
/
Attributes
/
Validation
:
ExcludeWith.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\LaravelData\Attributes\Validation; use Attribute; use Spatie\LaravelData\Support\Validation\References\FieldReference; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)] class ExcludeWith extends StringValidationAttribute { protected FieldReference $field; public function __construct( string|FieldReference $field, ) { $this->field = $this->parseFieldReference($field); } public static function keyword(): string { return 'exclude_with'; } public function parameters(): array { return [$this->field]; } }