This commit is contained in:
2026-05-01 23:40:14 +08:00
commit b8f599a617
3867 changed files with 478663 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace Illuminate\Validation\Rules;
use Illuminate\Support\Traits\Conditionable;
use Stringable;
class Exists implements Stringable
{
use Conditionable, DatabaseRule;
/**
* Convert the rule to a validation string.
*
* @return string
*/
public function __toString()
{
return rtrim(sprintf('exists:%s,%s,%s',
$this->table,
$this->column,
$this->formatWheres()
), ',');
}
}