OnlyImported.php 219 Bytes
Newer Older
jiangbowen's avatar
jiangbowen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

namespace Adldap\Laravel\Validation\Rules;

class OnlyImported extends Rule
{
    /**
     * {@inheritdoc}
     */
    public function isValid()
    {
        return $this->model && $this->model->exists;
    }
}