mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-15 02:07:56 -04:00
35 lines
696 B
PHP
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;
|
|
}
|
|
}
|