Skip to content

Configure more than one auth driver #834

Answered by Gummibeer
9khaledSayed asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @9khaledSayed ,
so we can solve this discussion I will post these snippets as a "real" answer as the comments can't be flagged as accepted answer.
If you use these snippets everything should work. The first is the whole file the second is one line you have to copy in the surrounding method. 😉

app/ActivityLog/ActivityLogger.php

<?php

namespace App\ActivityLog;

use Illuminate\Auth\AuthManager;
use Illuminate\Contracts\Config\Repository as Config;
use Spatie\Activitylog\ActivityLogger as SpatieActivityLogger;
use Spatie\Activitylog\ActivityLogStatus;

class ActivityLogger extends SpatieActivityLogger;
{
    public function __construct(AuthManager $auth, Config $config, ActivityLogStatus $

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@9khaledSayed
Comment options

@Gummibeer
Comment options

@9khaledSayed
Comment options

@Gummibeer
Comment options

@9khaledSayed
Comment options

Comment options

You must be logged in to vote
3 replies
@9khaledSayed
Comment options

@Gummibeer
Comment options

@heyder777
Comment options

Answer selected by 9khaledSayed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants