Search code examples
laravelcartalyst-sentinelactivitylog

Laravel Spatie/Laravel-activitylog with Sentinel


I'm using Sentinel for authorization on my Laravel project. Now i'm trying to add Laravel-activitylog from Spatie. Activity log uses default auth driver for logging user activity. How can i change driver to use the one from Sentinel. I'm new at Laravel and have trouble implementing this. Any help would be greatly appreciated. Kind regards.


Solution

  • It's right in the config file.

    'default_auth_driver' => null,
    

    Just set it to whatever you're using.

    https://docs.spatie.be/laravel-activitylog/v2/installation-and-setup