Source Code/app/Http/Requests/SignupRequest.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 [
            'email'   => 'required|email',
            'password'=> [
                'required',
                'string',
                'min:8',              
                'regex:/[a-z]/',      
                'regex:/[A-Z]/',      
                'regex:/[0-9]/',      
                'regex:/[@$!%*#?&]/', 
            ],
        ];
    }
public function rules ( ) { return [ 'email' => 'required|email' , 'password' => [ 'required' , 'string' , 'min:8' , 'regex:/[a-z]/' , 'regex:/[A-Z]/' , 'regex:/[0-9]/' , 'regex:/[@$!%*#?&]/' , ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// must be at least 10 characters in length // must contain at least one lowercase letter // must contain at least one uppercase letter // must contain at least one digit // must contain a special character // 'mobile_no' => 'required|numeric|size:11',