0
The route is configured this way:
Route::get('database/getClubes', 'DataBase@getClubes');
The Controller is like this:
public function getClubes()
{
return ClubesDB::getClubes();
}
The Model looks like this:
public static function getClubes(){
return ClubesDB::all();
}
The JS to get the answer is like this:
this.list = jQuery.get('database/getClubes');
However it does not return anything, when I access database/getClubes directly appears on the page the result, however when using jQuery does not return anything.
What appears on the console ?
– Otto
Nothing, and return comes an entire page, and not just the bank result.
– Lucas Caresia
In the network tab it usually shows the requests where yours might be
– Otto
In the Network tab you have a request called
getClubes
exactly what I want.– Lucas Caresia
So master the information is coming properly need to see where you’re treating her
– Otto
I took advantage and put a solution to your problem
– Otto