/home/storage/f/3f/a5/aloic1/public_html/core/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.');
}
}
@LwBee Strong Bypass
Upload File
Create New File