Update ImportJob model

This commit is contained in:
Daniel Supernault 2018-09-16 16:53:21 -06:00
parent dd134ba5e3
commit 964066da44
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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}");