title: Laravel belongsTo throwing undefined function App/BelongsTo() exception
body: <p>I have a comments table and user table with the relationship: user->hasMany('comments') and comment->belongsTo('user').  For some reason with which eludes me, I keep getting this </p>
  
  <pre><code>FatalErrorException in Comment.php line 22: Call to undefined function App\belongsTo()
  </code></pre>
  
  <p>My other models have no issue whatsoever with the HasMany relations, however, the comments model has a problem with every single thing i try (even if i use HasMany just to see if it will have a different error).</p>
  
  <p>Here is the Comment model.
      
  
  <pre><code>use Illuminate\Database\Eloquent\Model;
  
  class Comment extends Model {
  
      protected $table = 'comments';
  
      protected $fillable = [
          'anime_id',
          'user_id',
          'user_comment'
          ];
  
      public function postedOnAnime($query)
      {
          $query-&gt;where('anime_id', '=', $this.id);
      }
  
      public function user()
      {
          return $this.belongsTo('App\User', 'user_id', 'id');
      }
  
      public function anime()
      {
          return $this.belongsTo('App\Anime');
      }
  
  }
  </code></pre>
  
  <p>Here is the Users table:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class CreateUsersTable extends Migration {
  
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('users', function(Blueprint $table)
          {
              $table-&gt;increments('id');
              $table-&gt;integer('role');
              $table-&gt;string('name')-&gt;unique();
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;string('password', 60);
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::drop('users');
      }
  
  }
  </code></pre>
  
  <p>Here is the Comments table</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class CreateCommentsTable extends Migration {
  
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('comments', function(Blueprint $table)
          {
              $table-&gt;increments('id');
              $table-&gt;integer('user_id')-&gt;unsigned();
              $table-&gt;integer('anime_id')-&gt;unsigned();
              $table-&gt;text('user_comment');
              $table-&gt;timestamps();
  
              $table-&gt;foreign('user_id')
                          -&gt;references('id')
                          -&gt;on('users')
                          -&gt;onDelete('cascade');
  
              $table-&gt;foreign('anime_id')
                          -&gt;references('id')
                          -&gt;on('animes')
                          -&gt;onDelete('cascade');
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::drop('comments');
      }
  
  }
  </code></pre>
  
  <p>Finally, when I call $comment->user() it fails with the error.  Does anyone know where this error comes from?</p>
  
  <p>Thanks.</p>