2022-09-20 19:59:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events\Forms;
|
|
|
|
|
|
|
|
use App\Models\Forms\Form;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class FormSubmitted
|
|
|
|
{
|
2024-02-23 10:54:12 +00:00
|
|
|
use Dispatchable;
|
|
|
|
use InteractsWithSockets;
|
|
|
|
use SerializesModels;
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
public $form;
|
2024-02-23 10:54:12 +00:00
|
|
|
|
2022-09-20 19:59:52 +00:00
|
|
|
public $data;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct(Form $form, array $data)
|
|
|
|
{
|
|
|
|
$this->form = $form;
|
|
|
|
$this->data = $data;
|
|
|
|
}
|
|
|
|
}
|