Something weird is happening in my production server using CentOS 7 and the problem is... in my local environment I have many applications developed with Laravel 4 and were installed in servers like CentOS 6.5 or 7 and works very well but this is not working in this part:

* I can't get the variables with Input::get('my\_get\_variable'); neither in the controller or in views because always return NULL.

I really don't know what's happening and hope you can help me.

It's not working using the form or not using it executing manually in the url.

**View Form**

```
{{ Form::open(array('method' => 'GET', 'action' => 'CompanyController@search', 'class' => 'f-search')) }}
    <input type="search" id="search-text" name="s" class="form-control input-lg" placeholder="Buscar empresas..." required>
    <select id="search-category" name="c" class="form-control input-lg">
        <option value="">Categoría</option>
        @foreach ($categories as $category)
            <optgroup label="{{ $category->name }}" id="{{ $category->id }}">
                @foreach ($category['subcategories'] as $subcategory)
                <option value="{{ $subcategory->id }}" id="{{ $subcategory->id }}">{{ $subcategory->name }}</option>
                @endforeach
            </optgroup>
        @endforeach
    </select>
    <input type="submit" class="btn btn-lg btn-primary" value="Buscar">
{{ Form::close() }}

```

**Route**

```
Route::get('/buscar','CompanyController@search');

```

**Controller**

```
//Search
public function search()
{
    $term = Input::get('s');
    $category = Input::get('c');

    var_dump($term);
    var_dump($category);
}

```

**UPDATE**

When I use $\_GET['s'] instead the Laravel get function, it returns this: Undefined index: s

**2nd UPDATE**

I changed the GET to POST and now works fine but Idk why is not working with GET.

Thanks to those who tried to solve this!