Hello. I have gett requests of the form:

getdata?contact&term=text getdata?company&term=text 

How can I check the get request now, where is contact or company ?

$_GET['company'] returned null. The link must be with &term=text .

Code in this form:

  if(isset($_GET['company']) && isset($_GET['term'])) { } 

    1 answer 1

     if (Input::has('company') && Input::has('term')) { } 

    UPD: You need to immediately indicate that the framework.

    http://laravel.com/docs/4.2/requests

    • Does not work. I do autocomplete on jquery + laravel. It does not show autocomplete. - Asets
    • @Nelzz, corrected the answer. - Bastiane