Files
wticreatorstudio/Modules/Chat/Http/Requests/ChangePasswordRequest.php
T
2024-02-12 22:54:20 -05:00

35 lines
696 B
PHP

<?php
namespace Modules\Chat\Http\Requests;
use App\Rules\NoSpaceContaine;
use Illuminate\Foundation\Http\FormRequest;
/**
* Class ChangePasswordRequest
*/
class ChangePasswordRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
$rules['password'] = ['required', 'string', 'min:8', 'max:30', 'confirmed', new NoSpaceContaine()];
return $rules;
}
}