PHP Class REBELinBLUE\Deployer\Events\ModelCreated

Inheritance: extends Event, implements Illuminate\Contracts\Broadcasting\ShouldBroadcast, use trait Illuminate\Queue\SerializesModels
Exibir arquivo Open project: rebelinblue/deployer

Public Properties

Property Type Description
$model Illuminate\Database\Eloquent\Model

Protected Properties

Property Type Description
$channel string

Public Methods

Method Description
__construct ( Model $model, string $channel ) ModelCreated constructor.
broadcastOn ( ) : array Get the channels the event should be broadcast on.

Method Details

__construct() public method

ModelCreated constructor.
public __construct ( Model $model, string $channel )
$model Illuminate\Database\Eloquent\Model
$channel string

broadcastOn() public method

Get the channels the event should be broadcast on.
public broadcastOn ( ) : array
return array

Property Details

$channel protected_oe property

protected string $channel
return string

$model public_oe property

public Model,Illuminate\Database\Eloquent $model
return Illuminate\Database\Eloquent\Model