src/Models/Appointment.php
public function getCodeAttribute()
    {
        $length = $this->business->pref('appointment_code_length');

        return strtoupper(substr($this->hash, 0, $length));
    }
public function getCodeAttribute()
    {
        $length = $this->business->pref('appointment_code_length');

        return strtoupper(substr($this->hash, 0, $length));
    }
public function getCodeAttribute ( ) { $ length = $ this -> business -> pref ( 'appointment_code_length' ) ; return strtoupper ( substr ( $ this -> hash , 0 , $ length ) ) ; }
Get user-friendly unique identification code.

@return string
Get user - friendly unique identification code .