Sindbad~EG File Manager

Current Path : /var/www/html/eddcfa.sumar.com.py/vendor/laravel/jetstream/src/Rules/
Upload File :
Current File : /var/www/html/eddcfa.sumar.com.py/vendor/laravel/jetstream/src/Rules/Role.php

<?php

namespace Laravel\Jetstream\Rules;

use Illuminate\Contracts\Validation\Rule;
use Laravel\Jetstream\Jetstream;

class Role implements Rule
{
    /**
     * Determine if the validation rule passes.
     *
     * @param  string  $attribute
     * @param  mixed  $value
     * @return bool
     */
    public function passes($attribute, $value)
    {
        return in_array($value, array_keys(Jetstream::$roles));
    }

    /**
     * Get the validation error message.
     *
     * @return string
     */
    public function message()
    {
        return __('The :attribute must be a valid role.');
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists