You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I created a simple application to test laravel-datatables. I created two tables Users and City.
Users table has a city_id field mapping to cities in City table. When I load the page it shows expected results but when I either type in search bar or if I move to next page it gives me 404 error.
let me share my code here.
Code snippet of problem
Controller
public function anyData()
{
$users = User::select(['users.id','name','email','created_at','updated_at','city.city as city' ])->join('city','users.city_id','=','city.c_id');
return Datatables::of($users)->make(true);
}
Summary of problem or feature request
Hi,
I created a simple application to test laravel-datatables. I created two tables Users and City.
Users table has a city_id field mapping to cities in City table. When I load the page it shows expected results but when I either type in search bar or if I move to next page it gives me 404 error.
let me share my code here.
Code snippet of problem
Controller
View
Routes
System details
The text was updated successfully, but these errors were encountered: