public function validate(array $input): bool
    {
        // Grab input fields and define the rules for user validations.
        $rules = [
            'email' => ['required', 'email'],
            'password' => ['required'],
            'fullname' => ['required'],
            'site_name' => ['required'],
        ];

        $validation = \app('validator')->make($input, $rules);

        // Validate user registration, we should stop this process if
        // the user not properly formatted.
        if ($validation->fails()) {
            throw new ValidationException($validation);
        }

        return true;
    }
public function validate(array $input): bool
    {
        // Grab input fields and define the rules for user validations.
        $rules = [
            'email' => ['required', 'email'],
            'password' => ['required'],
            'fullname' => ['required'],
            'site_name' => ['required'],
        ];

        $validation = \app('validator')->make($input, $rules);

        // Validate user registration, we should stop this process if
        // the user not properly formatted.
        if ($validation->fails()) {
            throw new ValidationException($validation);
        }

        return true;
    }
public function validate ( array $ input ) : bool { // Grab input fields and define the rules for user validations. $ rules = [ 'email' => [ 'required' , 'email' ] , 'password' => [ 'required' ] , 'fullname' => [ 'required' ] , 'site_name' => [ 'required' ] , ] ; $ validation = \ app ( 'validator' ) -> make ( $ input , $ rules ) ; // Validate user registration, we should stop this process if // the user not properly formatted. if ( $ validation -> fails ( ) ) { throw new ValidationException ( $ validation ) ; } return true ; }
Validate request.

@param  array  $input

@throws \Illuminate\Validation\ValidationException

@return bool
Validate request .