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