mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-03 09:57:45 -08:00
Added relationship for adminuser
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6fee533283
commit
6f700ccc95
|
@ -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…
Reference in a new issue