Method
Event::once
Calls $listeners the next time the event triggers, and not after.
Description#
public Event::once(
Closure ...$listeners
): voidParameters#
- ...$listeners Closure
See also#
Event::listenCalls$listenersevery time the event triggers.Event::offRemoves$listeners, whether they were added withlisten()oronce().