Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/app/Rules/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/app/Rules/NotRoleUser.php

<?php

namespace App\Rules;

use Illuminate\Contracts\Validation\Rule;

class NotRoleUser implements Rule
{
    public function passes($attribute, $value)
    {
        return strtolower($value) !== 'user';
    }

    public function message()
    {
        return 'The :attribute cannot be "user".';
    }
}