May be you may get the data directly from your controller :
public function userCount(){
$user_count = //Rest of the code to count the row users in the database table
return $user_count //$user_count holds the number of users
}
instead of return a view and get the data from the view with a jquery request
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community