瀏覽代碼

Update ImportJob model

Daniel Supernault 6 年之前
父節點
當前提交
964066da44
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/ImportJob.php

+ 5 - 0
app/ImportJob.php

@@ -6,6 +6,11 @@ use Illuminate\Database\Eloquent\Model;
 
 
 class ImportJob extends Model
 class ImportJob extends Model
 {
 {
+    public function profile()
+    {
+        return $this->belongsTo(Profile::class, 'profile_id');
+    }
+    
     public function url()
     public function url()
     {
     {
     	return url("/i/import/job/{$this->uuid}/{$this->stage}");
     	return url("/i/import/job/{$this->uuid}/{$this->stage}");