<?php

namespace RadDB;

use Illuminate\Database\Eloquent\Model;

class SurveyScheduleView extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'surveyschedule_view';

    /*
     * Relationships
     */
    public function machine()
    {
        return $this->belongsTo('RadDB\Machine', 'id');
    }

    public function prevSurvey()
    {
        return $this->belongsTo('RadDB\TestDate', 'prevSurveyID');
    }

    public function currSurvey()
    {
        return $this->belongsTo('RadDB\TestDate', 'currSurveyID');
    }
}

<?php

namespace RadDB;

use Illuminate\Database\Eloquent\Model;

class SurveyScheduleView extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'surveyschedule_view';

    /*
     * Relationships
     */
    public function machine()
    {
        return $this->belongsTo('RadDB\Machine', 'id');
    }

    public function prev_survey()
    {
        return $this->belongsTo('RadDB\TestDate');
    }

    public function curr_survey()
    {
        return $this->belongsTo('RadDB\TestDate');
    }
}

--- 
+++ 
@@ -21,13 +21,13 @@
         return $this->belongsTo('RadDB\Machine', 'id');
     }
 
-    public function prev_survey()
+    public function prevSurvey()
     {
-        return $this->belongsTo('RadDB\TestDate');
+        return $this->belongsTo('RadDB\TestDate', 'prevSurveyID');
     }
 
-    public function curr_survey()
+    public function currSurvey()
     {
-        return $this->belongsTo('RadDB\TestDate');
+        return $this->belongsTo('RadDB\TestDate', 'currSurveyID');
     }
 }
Fix foreign key name in relationships
