Support the ongoing development of Laravel.io →
Views Blade
Last updated 1 year ago.
0

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

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

webman0317 webman0317 Joined 19 Oct 2016

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.

© 2024 Laravel.io - All rights reserved.