title: Why display empty page without variable values in Laravel 5.2
body: <p>I need to display my users table data in the <code>index.blade.php</code> file, but when I visit the index view it displays an empty page, it does not display the variables data, which I need. (No errors are displayed.)</p>
  
  <p>index.blade.php</p>
  
  <pre><code>@if(isset($users))
  @foreach($users as $use)
  &lt;h1&gt;{{$use-&gt;username}}&lt;/h1&gt;
  
  @endforeach
  @endif  
  </code></pre>
  
  <p>UsersController.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;    
  use Illuminate\Http\Request;
  
  use Auth;
  use App\User;
  
  use App\Http\Requests;
  
  class UserController extends Controller
  {
      public function index()
      {
          $users = User::userr()-&gt;get();
          // $users = User::all();
  
          return view('users.index')-&gt;withUser($users);
          //dd($users);
      }    
  }
  </code></pre>
  
  <p>User.php Model</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  use Auth;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  
  class User extends Authenticatable
  {
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'username', 'email', 'password',
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
      ];
  
      public function getAvatarUrl()
      {
          return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($this-&gt;email))) . "?d=mm&amp;s=40";
      }
  
      public function scopeUserr($query)
      {
          return $query-&gt;where('username',Auth::user()-&gt;id);        
      }       
  }
  </code></pre>
  
  <p>Can You give me some solutions?</p>