2020-01-30 02:27:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events\Credit;
|
|
|
|
|
|
|
|
use App\Models\Credit;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class CreditWasEmailed
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
|
|
|
|
public $credit;
|
|
|
|
|
2020-06-30 01:35:17 +02:00
|
|
|
public $company;
|
|
|
|
|
2020-01-30 02:27:22 +01:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2020-06-30 01:35:17 +02:00
|
|
|
public function __construct(Credit $credit, $company)
|
2020-01-30 02:27:22 +01:00
|
|
|
{
|
|
|
|
$this->credit = $credit;
|
2020-06-30 01:35:17 +02:00
|
|
|
$this->company = $company;
|
2020-01-30 02:27:22 +01:00
|
|
|
}
|
|
|
|
}
|