PHP Class Rubenwouters\CrmLauncher\Models\Contact

Inheritance: extends Illuminate\Database\Eloquent\Model
Exibir arquivo Open project: rubenwouters/crm-launcher Class Usage Examples

Protected Properties

Property Type Description
$table string table name

Public Methods

Method Description
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 )

Method Details

cases() public method

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

createContact() public method

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

getContact() public method

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

innerComment() public method

public innerComment ( )

messages() public method

public messages ( )

scopeFindByFbId() public method

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

scopeFindByTwitterId() public method

public scopeFindByTwitterId ( $query, $id )

Property Details

$table protected_oe property

table name
protected string $table
return string