PHP Class Rubenwouters\CrmLauncher\Models\Contact

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: rubenwouters/crm-launcher Class Usage Examples

Protected Properties

Свойство Type Description
$table string table name

Méthodes publiques

Méthode 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 méthode

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

createContact() public méthode

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

getContact() public méthode

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

innerComment() public méthode

public innerComment ( )

messages() public méthode

public messages ( )

scopeFindByFbId() public méthode

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

scopeFindByTwitterId() public méthode

public scopeFindByTwitterId ( $query, $id )

Property Details

$table protected_oe property

table name
protected string $table
Résultat string