Added some hidden fields

This commit is contained in:
snipe 2017-01-13 00:12:26 -08:00
parent 4f35c8af3e
commit d2f84a2329
2 changed files with 2 additions and 0 deletions

View file

@ -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()
{ {

View file

@ -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'];