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:
@@ -155,7 +155,7 @@ class AgentController extends Controller
|
||||
}
|
||||
// returns for the success case
|
||||
if ($request->input('active') == '0' || $request->input('active') == 0) {
|
||||
\Event::fire(new \App\Events\LoginEvent($request));
|
||||
event(new \App\Events\LoginEvent($request));
|
||||
}
|
||||
|
||||
return redirect('agents')->with('success', Lang::get('lang.agent_creation_success'));
|
||||
|
Reference in New Issue
Block a user