setPushableOptions()
setPushableOptions(array $opts = array())
Set default pushable options for model, uses an array with the keys
- category - string socket category user is subscribed to
- related - array of related properties to include when serializing
Example:
class Content extends BaseModel
{
use Pushable;
...
$this->setPushableOptions([
'category' => 'contentupdate',
'related' => [
'export',
'authors',
'tags',
'assignment',
'attachment',
'audit',
'export',
'dominantAttachment'
]
]
}
Parameters
array | $opts |