PHP 클래스 Rubenwouters\CrmLauncher\Models\Contact

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: rubenwouters/crm-launcher 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$table string table name

공개 메소드들

메소드 설명
cases ( ) * |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Contact model |
createContact ( string $type, array $message ) : object Inserts new contact in DB
getContact ( string $type, string $id ) : collection Check if contact exists, if not create a new user
innerComment ( )
messages ( )
scopeFindByFbId ( $query, $id ) * |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Contact model |
scopeFindByTwitterId ( $query, $id )

메소드 상세

cases() 공개 메소드

* |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Contact model |
public cases ( )

createContact() 공개 메소드

Inserts new contact in DB
public createContact ( string $type, array $message ) : object
$type string
$message array
리턴 object

getContact() 공개 메소드

Check if contact exists, if not create a new user
public getContact ( string $type, string $id ) : collection
$type string
$id string
리턴 collection

innerComment() 공개 메소드

public innerComment ( )

messages() 공개 메소드

public messages ( )

scopeFindByFbId() 공개 메소드

* |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Contact model |
public scopeFindByFbId ( $query, $id )

scopeFindByTwitterId() 공개 메소드

public scopeFindByTwitterId ( $query, $id )

프로퍼티 상세

$table 보호되어 있는 프로퍼티

table name
protected string $table
리턴 string