Question: Iam using below xpath:

```
//label[text()='First Name']/Parent::div/following-sibling::div/div/input[@disabled='disabled']

```

But showing an error as:

> 
> SyntaxError: Failed to execute 'evaluate' on 'Document': The string
>  '//label[text()='First
>  Name']/Parent::div/following-sibling::div/div/input[@disabled='disabled']'
>  is not a valid XPath expression.
> 
> 
>

Answer: 
You need to return all `form` inputs with `compact` function.

**Controller**

```
public function showvalues(Request $request)
{
    $form = $request->all();

    return view('showvalues', compact('form'));
}

```

**View**

```
{{ $form['name'] }}
{{ $form['address'] }}

```
what about

```
return view('showvalues')->withName($name);

```

Or

```
return view('showvalues')->with(['name'=>$name]);

```