title: Trying to get property 'admin' of non-object
body: <p>I am trying to avoid ordinary users to see what's in my dashboard but it says "Trying to get property 'admin' of non-object" when i try to Auth the user
  here what the error says[enter image description here][1]</p>
  
  <p><strong>User Model</strong></p>
  
  <pre><code>class User extends Authenticatable
  {
      use Notifiable;
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'name', 'email', 'password', 'admin'
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
      ];
  
  
      public function profile() {
          return $this-&gt;hasOne('App\Profile');
      }
  
      public function posts() {
          return $this-&gt;hasMany('App\Post');
      }
  }
  </code></pre>
  
  <p><strong>Route</strong></p>
  
  <pre><code>Auth::routes();
  
  
  
  Route::group(['prefix' =&gt; 'admin', 'middleware' =&gt; 'auth'], function(){
  
  Route::get('/home', 'HomeController@index')-&gt;name('home');
  </code></pre>