opnform/app/Events/Forms/FormSubmitted.php

31 lines
547 B
PHP

<?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
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
public $form;
public $data;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Form $form, array $data)
{
$this->form = $form;
$this->data = $data;
}
}