app/Http/Requests/UsersRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required|max:100',
            'surname' => 'required|max:100',
            'patronymic' => 'required|max:100',
            'snils' => 'required|regex:/^\d{3}\-\d{3}\-\d{3}\s\d{2}$/',
            'login' => 'required|min:5',
            'password' => 'required|min:8',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:100' , 'surname' => 'required|max:100' , 'patronymic' => 'required|max:100' , 'snils' => 'required|regex:/^\d{3}\-\d{3}\-\d{3}\s\d{2}$/' , 'login' => 'required|min:5' , 'password' => 'required|min:8' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .