mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -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
|
||||
*/
|
||||
protected $fillable = ['name'];
|
||||
protected $hidden = ['user_id'];
|
||||
|
||||
public function users()
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
|
|||
use Notifiable;
|
||||
use Presentable;
|
||||
protected $dates = ['deleted_at'];
|
||||
protected $hidden = ['password'];
|
||||
protected $table = 'users';
|
||||
protected $injectUniqueIdentifier = true;
|
||||
protected $fillable = ['first_name', 'last_name', 'email','password','username'];
|
||||
|
|
Loading…
Reference in a new issue