Traq\Models\User::beforeCreate PHP 메소드

beforeCreate() 보호된 메소드

Set defaults before creating user.
protected beforeCreate ( )
    protected function beforeCreate()
    {
        $this->name = $this->name ?: $this->username;
        $this->session_hash = sha1($this->username . uniqid() . microtime() . rand(0, 99999));
    }