PHP Class Rubenwouters\CrmLauncher\Models\Log

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

Protected Properties

Property Type Description
$table string table name

Public Methods

Method Description
scopeDashboardUpdate ( $query )
scopeLatestLog ( $query, $type ) * |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Relationships of Log model |
secondsago ( $type ) : integer Check seconds between previous API call & now
updateLog ( string $type ) : void Updates logs to keep track of API rate limits

Method Details

scopeDashboardUpdate() public method

public scopeDashboardUpdate ( $query )

scopeLatestLog() public method

* |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Relationships of Log model |
public scopeLatestLog ( $query, $type )

secondsago() public method

Check seconds between previous API call & now
public secondsago ( $type ) : integer
return integer

updateLog() public method

Updates logs to keep track of API rate limits
public updateLog ( string $type ) : void
$type string
return void

Property Details

$table protected_oe property

table name
protected string $table
return string