Skip to content

Commit 6f700cc

Browse files
committed
Added relationship for adminuser
Signed-off-by: snipe <[email protected]>
1 parent 6fee533 commit 6f700cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/Models/Import.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ class Import extends Model
1414
'first_row' => 'array',
1515
'field_map' => 'json',
1616
];
17+
18+
/**
19+
* Establishes the license -> admin user relationship
20+
*
21+
* @author A. Gianotto <[email protected]>
22+
* @since [v2.0]
23+
* @return \Illuminate\Database\Eloquent\Relations\Relation
24+
*/
25+
public function adminuser()
26+
{
27+
return $this->belongsTo(\App\Models\User::class, 'created_by');
28+
}
1729
}

0 commit comments

Comments
 (0)