app/Widgets/UsersNeverAccessed.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()
    {
        $users = User::whereNull('last_login')->take(8)->get();
        $this->config = $users;
        if (count($users) > 0) {
            return view('widgets.users_never_accessed', [
                'users' => $this->config,
            ]);
        }
        return '';
    }
public function run ( ) { $ users = User :: whereNull ( 'last_login' ) -> take ( 8 ) -> get ( ) ; $ this -> config = $ users ; if ( count ( $ users ) > 0 ) { return view ( 'widgets.users_never_accessed' , [ 'users' => $ this -> config , ] ) ; } return '' ; }
Treat this method as a controller action.
Treat this method as a controller action .