mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Laravel: Stop calling deprecated fire() method
This has been deprecated and removed from the contract for a long time, and it will be completely dropped in v5.8, our next upgrade target.
This commit is contained in:
@@ -90,6 +90,6 @@ if (! function_exists('event')) {
|
||||
*/
|
||||
function event($event, $payload = [], $halt = false)
|
||||
{
|
||||
return app('events')->fire($event, $payload, $halt);
|
||||
return app('events')->dispatch($event, $payload, $halt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user