public function registerEvents()
    {
        // Delete user tokens after login
        if (config('passwordless.empty_tokens_after_login') === true) {
            Event::listen(
                Authenticated::class,
                function (Authenticated $event) {
                    $event->user->tokens()
                        ->delete();
                }
            );
        }
    }
public function registerEvents()
    {
        // Delete user tokens after login
        if (config('passwordless.empty_tokens_after_login') === true) {
            Event::listen(
                Authenticated::class,
                function (Authenticated $event) {
                    $event->user->tokens()
                        ->delete();
                }
            );
        }
    }
public function registerEvents ( ) { // Delete user tokens after login if ( config ( 'passwordless.empty_tokens_after_login' ) === true ) { Event :: listen ( Authenticated :: class , function ( Authenticated $ event ) { $ event -> user -> tokens ( ) -> delete ( ) ; } ) ; } }
Register application event listeners
Register application event listeners