File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Validation/Rules
Upload
[..]
AnyOf.php (2.15 KB)
Edit
Rename
Del
Can.php (1.8 KB)
Edit
Rename
Del
Dimensions.php (3.15 KB)
Edit
Rename
Del
DoesntContain.php (1.06 KB)
Edit
Rename
Del
Enum.php (4.02 KB)
Edit
Rename
Del
ExcludeIf.php (1.06 KB)
Edit
Rename
Del
ExcludeUnless.php (1.06 KB)
Edit
Rename
Del
In.php (1.18 KB)
Edit
Rename
Del
NotIn.php (1.12 KB)
Edit
Rename
Del
Password.php (11.02 KB)
Edit
Rename
Del
ProhibitedIf.php (1.07 KB)
Edit
Rename
Del
ProhibitedUnless.php (1.08 KB)
Edit
Rename
Del
Edit: DoesntContain.php
<?php namespace Illuminate\Validation\Rules; use Illuminate\Contracts\Support\Arrayable; use Stringable; use function Illuminate\Support\enum_value; class DoesntContain implements Stringable { /** * The values that should not be contained in the attribute. * * @var array */ protected $values; /** * Create a new doesntContain rule instance. * * @param \Illuminate\Contracts\Support\Arrayable|\UnitEnum|array|string $values */ public function __construct($values) { if ($values instanceof Arrayable) { $values = $values->toArray(); } $this->values = is_array($values) ? $values : func_get_args(); } /** * Convert the rule to a validation string. * * @return string */ public function __toString() { $values = array_map(function ($value) { $value = enum_value($value); return '"'.str_replace('"', '""', (string) $value).'"'; }, $this->values); return 'doesnt_contain:'.implode(',', $values); } }
Simpan