app/Widgets/UsersActivesCount.php
/**
     * Treat this method as a controller action.
     * Return view() or other content to display.
     */
Treat this method as a controller action.
Return view() or other content to display.
Treat this method as a controller action . Return view () or other content to display .
public function run()
    {
        $this->config = [
            'count' => User::where('active', 1)->count(),
        ];
        return view('widgets.users_actives_count', [
            'config' => $this->config,
        ]);
    }
public function run ( ) { $ this -> config = [ 'count' => User :: where ( 'active' , 1 ) -> count ( ) , ] ; return view ( 'widgets.users_actives_count' , [ 'config' => $ this -> config , ] ) ; }
Treat this method as a controller action.
Treat this method as a controller action .