mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Added some hidden fields
This commit is contained in:
parent
4f35c8af3e
commit
d2f84a2329
|
@ -44,6 +44,7 @@ class Location extends SnipeModel
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $fillable = ['name'];
|
protected $fillable = ['name'];
|
||||||
|
protected $hidden = ['user_id'];
|
||||||
|
|
||||||
public function users()
|
public function users()
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
|
||||||
use Notifiable;
|
use Notifiable;
|
||||||
use Presentable;
|
use Presentable;
|
||||||
protected $dates = ['deleted_at'];
|
protected $dates = ['deleted_at'];
|
||||||
|
protected $hidden = ['password'];
|
||||||
protected $table = 'users';
|
protected $table = 'users';
|
||||||
protected $injectUniqueIdentifier = true;
|
protected $injectUniqueIdentifier = true;
|
||||||
protected $fillable = ['first_name', 'last_name', 'email','password','username'];
|
protected $fillable = ['first_name', 'last_name', 'email','password','username'];
|
||||||
|
|
Loading…
Reference in a new issue