A free open source IT asset/license management system
Added relationship for adminuser
snipe6f700ccc9579
diff --git a/app/Models/Import.php b/app/Models/Import.phpindex 052612a197..d824a3840c 100644--- a/app/Models/Import.php+++ b/app/Models/Import.php@@ -14,4 +14,16 @@ class Import extends Model'first_row' => 'array','field_map' => 'json',];++ /**+ * Establishes the license -> admin user relationship+ *+ * @author A. Gianotto <[email protected]>+ * @since [v2.0]+ * @return \Illuminate\Database\Eloquent\Relations\Relation+ */+ public function adminuser()+ {+ return $this->belongsTo(\App\Models\User::class, 'created_by');+ }}