Skip to content

How can I use Audits on codeigniter4/shield? #21

@d4f3dQnK

Description

@d4f3dQnK

My Audits Config like this:

<?php

namespace Config;

use Tatter\Audits\Config\Audits as AuditsConfig;

class Audits extends AuditsConfig
{
    // Session key in that contains the integer ID of a logged in user
    public $sessionUserId = 'user_id';

    // Whether to continue instead of throwing exceptions
    public $silent = true;
}

And I can't get the user_id from session with Shield package. How can I fix this? Thank you.


Ci4 Ver.: 4.3.0
Audits Ver.: 1.1..3
Shield Ver.: 1.0.0-beta.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions