Convert to event
helper
Laravel has deprecated the `fire()` helper and `Event::fire()`. These will be removed in Laravel 5.8. Instead, you should use the `event()` helper.
This commit is contained in:
@@ -47,7 +47,7 @@ class TicketFetch extends Command
|
||||
$system = new \App\Model\helpdesk\Settings\System();
|
||||
$ticket = new \App\Model\helpdesk\Settings\Ticket();
|
||||
$controller->readmails($emails, $settings_email, $system, $ticket);
|
||||
Event::fire('ticket.fetch', ['event' => '']);
|
||||
event('ticket.fetch', ['event' => '']);
|
||||
loging('fetching-ticket', 'Ticket has read', 'info');
|
||||
//\Log::info('Ticket has read');
|
||||
$this->info('Ticket has read');
|
||||
|
Reference in New Issue
Block a user