Added relationship for adminuser
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6fee533283
commit
6f700ccc95
1 changed files with 12 additions and 0 deletions
|
@ -14,4 +14,16 @@ class Import extends Model
|
||||||
'first_row' => 'array',
|
'first_row' => 'array',
|
||||||
'field_map' => 'json',
|
'field_map' => 'json',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Establishes the license -> admin user relationship
|
||||||
|
*
|
||||||
|
* @author A. Gianotto <snipe@snipe.net>
|
||||||
|
* @since [v2.0]
|
||||||
|
* @return \Illuminate\Database\Eloquent\Relations\Relation
|
||||||
|
*/
|
||||||
|
public function adminuser()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(\App\Models\User::class, 'created_by');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue