Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Overwriting `oneauth.logged` default event listener
<?php
// In order to overwrite the default listener we must add the event overwrite
// after the bundle is started.
Event::listen('laravel.started: oneauth', function ()
{
Event::clear('oneauth.logged');
Event::listen('oneauth.logged', function ($client, $userdata)
{
// Add your replacement here.
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment