src/Http/Requests/HCUserRequest.php
public function getUserInput(): array
    {
        $data = [
            'email' => $this->input('email'),
            'is_active' => $this->filled('is_active') ? 1 : 0,
        ];

        if ($this->input('password')) {
            Arr::set($data, 'password', $this->input('password'));
        }

        return $data;
    }
public function getUserInput(): array
    {
        $data = [
            'email' => $this->input('email'),
            'is_active' => $this->filled('is_active') ? 1 : 0,
        ];

        if ($this->input('password')) {
            Arr::set($data, 'password', $this->input('password'));
        }

        return $data;
    }
public function getUserInput ( ) : array { $ data = [ 'email' => $ this -> input ( 'email' ) , 'is_active' => $ this -> filled ( 'is_active' ) ? 1 : 0 , ] ; if ( $ this -> input ( 'password' ) ) { Arr :: set ( $ data , 'password' , $ this -> input ( 'password' ) ) ; } return $ data ; }
Get request inputs

@return array
Get request inputs