Add initial support for multiple companies

You can find screenshots and other files
related to the feature on Dropbox here:
https://www.dropbox.com/sh/wugnzqepwgzwlnh/AAAwNWA5hIKrP0y2VTu-LMHHa?dl=0

https://github.com/snipe/snipe-it/issues/23
This commit is contained in:
Abdullah Alansari
2015-11-07 14:40:48 +03:00
parent c1961c0e40
commit 6bf2a2875f
39 changed files with 822 additions and 65 deletions
+5
View File
@@ -12,6 +12,11 @@ class User extends SentryUserModel
use SoftDeletingTrait;
protected $dates = ['deleted_at'];
public function company()
{
return $this->belongsTo('Company', 'company_id');
}
/**
* Returns the user full name, it simply concatenates