28 lines
468 B
PHP
28 lines
468 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 CreateNewContent extends Event
|
|
{
|
|
use SerializesModels;
|
|
/**
|
|
* @var Content
|
|
*/
|
|
public $page;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Content $page)
|
|
{
|
|
$this->page = $page;
|
|
}
|
|
}
|