2020-04-28 01:50:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events\Quote;
|
|
|
|
|
|
|
|
use App\Models\Quote;
|
|
|
|
use Illuminate\Broadcasting\Channel;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
|
|
use Illuminate\Broadcasting\PresenceChannel;
|
|
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
|
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class QuoteWasApproved
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
|
|
|
|
public $quote;
|
|
|
|
|
2020-06-30 01:35:17 +02:00
|
|
|
public $company;
|
2020-04-28 01:50:54 +02:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2020-06-30 01:35:17 +02:00
|
|
|
public function __construct(Quote $quote, $company)
|
2020-04-28 01:50:54 +02:00
|
|
|
{
|
|
|
|
$this->quote = $quote;
|
2020-06-30 01:35:17 +02:00
|
|
|
$this->company = $company;
|
2020-04-28 01:50:54 +02:00
|
|
|
}
|
|
|
|
}
|