Support the ongoing development of Laravel.io →
posted 10 years ago
Requests

I run this simple route and get message "No Ajax". I can't get any ajax request to function like autocomplete.

Route::get('/catagories', function() {

 if (Request::ajax()) {
     return "yeahhhh";
     }
     return "<br />No ajax";
      return View::make('index');

});

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

dendic dendic Joined 30 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.