31 lines
492 B
PHP
31 lines
492 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Content;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MakeDraftFromContent extends Event
|
|
{
|
|
use SerializesModels;
|
|
/**
|
|
* @var Content
|
|
*/
|
|
public $page;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $revision;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Content $page, $revision)
|
|
{
|
|
$this->page = $page;
|
|
$this->revision = $revision;
|
|
}
|
|
}
|