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:
Shift
2023-01-06 11:53:21 +00:00
parent 74cce368f1
commit 03623d493d
10 changed files with 39 additions and 39 deletions

View File

@@ -380,7 +380,7 @@ class GuestController extends Controller
if (\Schema::hasTable('sms')) {
$sms = DB::table('sms')->get();
if (count($sms) > 0) {
\Event::fire(new \App\Events\LoginEvent($request));
event(new \App\Events\LoginEvent($request));
return 1;
}