snipe-it/app/Models/SCIMUser.php

15 lines
377 B
PHP
Raw Normal View History

<?php
namespace App\Models;
class SCIMUser extends User
{
protected $table = 'users';
protected $throwValidationExceptions = true; // we want model-level validation to fully THROW, not just return false
public function __construct(array $attributes = []) {
$attributes['password'] = $this->noPassword();
parent::__construct($attributes);
}
}