src/IncomingEntry.php
public function user($user)
    {
        $this->user = $user;

        $this->content = array_merge($this->content, [
            'user' => [
                'id' => $user->getAuthIdentifier(),
                'name' => $user->name ?? null,
                'email' => $user->email ?? null,
            ],
        ]);

        $this->tags(['Auth:'.$user->getAuthIdentifier()]);

        return $this;
    }
public function user($user)
    {
        $this->user = $user;

        $this->content = array_merge($this->content, [
            'user' => [
                'id' => $user->getAuthIdentifier(),
                'name' => $user->name ?? null,
                'email' => $user->email ?? null,
            ],
        ]);

        $this->tags(['Auth:'.$user->getAuthIdentifier()]);

        return $this;
    }
public function user ( $ user ) { $ this -> user = $ user ; $ this -> content = array_merge ( $ this -> content , [ 'user' => [ 'id' => $ user -> getAuthIdentifier ( ) , 'name' => $ user -> name ?? null , 'email' => $ user -> email ?? null , ] , ] ) ; $ this -> tags ( [ 'Auth:' . $ user -> getAuthIdentifier ( ) ] ) ; return $ this ; }
Set the currently authenticated user.

@param  \Illuminate\Contracts\Auth\Authenticatable  $user
@return $this
Set the currently authenticated user .