For 'login' stuff, you can create a LoginResponse class which implements the LoginResponseContract
<?php
namespace App\Http\Responses;
use Laravel\Fortify\Contracts\LoginResponse as LoginResponseContract;
class LoginResponse implements LoginResponseContract
{
public function toResponse($request)
{
and... log data from $request there.
Delete Cookies on Logout, Laravel 8.x, Fortify/Jetstream has a bit more detail on some of this (you need to bind the new response classes in FortifyServiceProvider).
I can't quite get the LogoutResponse to be useful, because by the time the request gets to the toResponse() method, it's already cleared out who was logging out.
EDIT: For logging logout, you may have to just write your own controller and create a different logout route: https://github.com/laravel/fortify/issues/405