make company current before deleting
This commit is contained in:
24
app/Events/Common/CompanyDeleting.php
Normal file
24
app/Events/Common/CompanyDeleting.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class CompanyDeleting extends Event
|
||||
{
|
||||
public $company;
|
||||
|
||||
public $current_company_id;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $company
|
||||
* @param $current_company_id
|
||||
*/
|
||||
public function __construct($company, $current_company_id)
|
||||
{
|
||||
$this->company = $company;
|
||||
$this->current_company_id = $current_company_id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user