How to get value of radio button in Controller
<p>Good afternoon!</p>

<p>I have the following code in the jquery who it works correctly.</p>

<pre><code>function countInputs(){
    var numElem = $('.name').size();
    $('.addTo').append('')                    
    .append('&lt;input type="radio" name="location'+numElem+'" value="0"&gt;Yes')
    .append('&lt;p&gt;')
    .append('&lt;input type="radio" name="location'+numElem+'" value="1"&gt;No estoy en el punto de interés')  
}
</code></pre>

<p>I receive an array of radio buttons name location1 , location2 , location3 but I /don't know how to read the value of this elements in the Controller , could anyone help to me ?</p>

<pre><code>  public function store(StoreDiarioRequest $request){

    $nombre = \Request::input("name");
    $descripcion = \Request::input("description");
    $fechaSalida = \Request::input("startDate");
    $fechaLlegada = \Request::input("finalDate");
    $informacion = \Request::input("information");    
    $pi = \Request::input('puntoInt');

    var_dump($request-&gt;input('location'))


  }
</code></pre>