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
1 changed files with 5 additions and 0 deletions

View File

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