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