![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/laravel/framework/src/Illuminate/Validation/Rules/ |
<?php namespace Illuminate\Validation\Rules; class NotIn { /** * The name of the rule. * * @var string */ protected $rule = 'not_in'; /** * The accepted values. * * @var array */ protected $values; /** * Create a new "not in" rule instance. * * @param array $values * @return void */ public function __construct(array $values) { $this->values = $values; } /** * Convert the rule to a validation string. * * @return string */ public function __toString() { $values = array_map(function ($value) { return '"'.str_replace('"', '""', $value).'"'; }, $this->values); return $this->rule.':'.implode(',', $values); } }