Event::forget PHP Method

forget() public static method

Remove a set of listeners from the dispatcher.
public static forget ( string $event ) : void
$event string
return void
        public static function forget($event)
        {
            \Illuminate\Events\Dispatcher::forget($event);
        }

Usage Example

 public function __construct()
 {
     Event::forget('router.filter: csrf');
 }