Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_id always stored NULL. #64

Closed
gazi-fn opened this issue Jun 30, 2016 · 1 comment
Closed

user_id always stored NULL. #64

gazi-fn opened this issue Jun 30, 2016 · 1 comment

Comments

@gazi-fn
Copy link

gazi-fn commented Jun 30, 2016

I am using this package everything is working except user_id is being saved null.
https://gyazo.com/db6731f2c124144a7d00cf6efb4af265
I have created the users table manually though it contains all fields. Any help?

@gazi-fn
Copy link
Author

gazi-fn commented Jul 1, 2016

I have got the problem I have used auth guard so it is essential to override or modify

    protected function getUserId()
    {
        try {
            if (\Auth::check()) {
                return \Auth::user()->getAuthIdentifier();
            }
        } catch (\Exception $e) {
            return;
        }
    }

this function at vendor\owen-it\laravel-auditing\src\AuditingTrait.php to specify the guard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant