PHP Class Rubenwouters\CrmLauncher\Models\Reaction

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

Protected Properties

Property Type Description
$table string table name

Public Methods

Method Description
innercomments ( )
insertReaction ( string $type, object $mention, integer $id, string $answer = null ) : Reaction Insert reaction in DB (eiter from a Facebook post or Tweet)
media ( )
publishment ( ) * |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Reaction model |
scopelatestMentionId ( $query ) * |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Reaction model |

Method Details

innercomments() public method

public innercomments ( )

insertReaction() public method

Insert reaction in DB (eiter from a Facebook post or Tweet)
public insertReaction ( string $type, object $mention, integer $id, string $answer = null ) : Reaction
$type string
$mention object
$id integer
$answer string
return Reaction

media() public method

public media ( )

publishment() public method

* |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Reaction model |
public publishment ( )

scopelatestMentionId() public method

* |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Reaction model |
public scopelatestMentionId ( $query )

Property Details

$table protected property

table name
protected string $table
return string