user; $token = $user->createToken("api_token")->plainTextToken; $notif = new SendApiTokenNotification($token); $user->notify($notif); } }