Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Validation\Rules;
4
 
5
use Illuminate\Support\Traits\Conditionable;
6
 
7
class Exists
8
{
9
    use Conditionable, DatabaseRule;
10
 
11
    /**
12
     * Convert the rule to a validation string.
13
     *
14
     * @return string
15
     */
16
    public function __toString()
17
    {
18
        return rtrim(sprintf('exists:%s,%s,%s',
19
            $this->table,
20
            $this->column,
21
            $this->formatWheres()
22
        ), ',');
23
    }
24
}