Want to logout the specific user, when admin inactive this specific user with laravel

Want to logout the specific user, when admin inactive this specific user with Laravel

public function userInactive1($id)
    {
        $selectedUser = User::find($id);
        if ($selectedUser) {
            // Update user status to inactive
            // $selectedUser->status = 0;
            $selectedUser->save();
        }

        return redirect()->back();
    }