Illuminate\Database\Eloquent\Model::touches PHP Method

touches() public method

Determine if the model touches a given relation.
public touches ( string $relation ) : boolean
$relation string
return boolean
    public function touches($relation)
    {
        return in_array($relation, $this->touches);
    }
Model