title: SQLSTATE[42S02]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name 'trip_user_master'
body: <p>when I'm trying to make a relation I found this error
  SQLSTATE[42S02]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name 'trip_user_master'. (SQL: select [trip].*, [trip_user_master].[user_master_UserID] as [pivot_user_master_UserID], [trip_user_master].[trip_id] as [pivot_trip_id] from [trip] inner join [trip_user_master] on [trip].[id] = [trip_user_master].[trip_id] where [trip_user_master].[user_master_UserID] = 9)</p>
  <p>my usermaster model
  &lt;?php</p>
  <p>namespace App;</p>
  <p>use Illuminate\Database\Eloquent\Model;</p>
  <p>class UserMaster extends Model
  {
  protected $primaryKey = 'UserID';</p>
  <pre><code>protected $fillable = [
      'UserName', 'UserPassword', 'UserRoles', 'UserEmailID', 'city', 'SSN', 'DriverLicense', 'FullName', 'imagePath', 'PhoneNumber', 'ImageUrl','DriverTotalRate'
  ];
  
  protected $table = 'UserMaster';
  
  public function trips_for_traveler()
  {
      return $this-&gt;belongsToMany(Trip::class);
  }
  
  public function trips_for_driver()
  {
      return $this-&gt;hasMany(Trip::class)-&gt;using(Reservation::class);
  }
  </code></pre>
  <p>}</p>
  <p>my trip model</p>
  <pre><code>    &lt;?PHP
  
      namespace App;
  
      use Illuminate\Database\Eloquent\Model;
  
      class Trip extends Model
      {
      protected $fillable = [
      'FromCity', 'ToCity', 'PlaceToMeet', 'DateOfTrip', 'TimeOfTrip', 'DriverId', 'TimeOfPost'
      ];
  
  protected $table = 'trip';
  
  public function driver()
  {
      return $this-&gt;belongsTo(UserMaster::class);
  }
  
  public function travelers()
  {
      return $this-&gt;belongsToMany(UserMaster::class)-&gt;using(Reservation::class);
  }
  </code></pre>
  <p>}</p>
  <p>my reservation model(many to many table's model)</p>
  <pre><code>    &lt;?PHP
  
      namespace App;
  
      use Illuminate\Database\Eloquent\Model;
  
      class Reservation extends Model
      {
          protected $table = 'Reservation';
  
  /**
   * Indicates if the IDs are auto-incrementing.
   *
   * @var bool
   */
  public $incrementing = true;
  </code></pre>
  <p>}</p>
  <p>my route</p>
  <pre><code>    Route::get('/reservation',function (){
  $data = \App\UserMaster::find(9);
  dd($data-&gt;trips_for_traveler);
  </code></pre>
  <p>});</p>