Skip to content

ErrorException (E_NOTICE) compact(): Undefined variable: countries #1

@webteamseo

Description

@webteamseo

Hey,
An exception is thrown here:
/vendor/awes-io/auth/src/Controllers/TwoFactorController.php

on this function:
public function index()
{
if (auth()->user()->isTwoFactorPending()) {
$qrCode = app()->make(TwoFactor::class)->qrCode(auth()->user());
}

    // $countries = Country::all();
    
    return view('awesio-auth::twofactor.index', compact('countries', 'qrCode'));
}

## The exception is:
ErrorException (E_NOTICE)
compact(): Undefined variable: countries

and if I unmark this line:
$countries = Country::all();

I get an exception on: qrCode

Some information on the versions i use:
"php": "^7.2",
"awes-io/auth": "^1.2",
"awes-io/base-js": "^1.9",
"awes-io/context-menu": "^1.0",
"awes-io/filter-wrapper": "^1.0",
"awes-io/form-builder": "^1.3",
"awes-io/generator": "^0.0",
"awes-io/geolocation": "^0.1.0",
"awes-io/indigo-layout": "^1.7",
"awes-io/localization-helper": "^1.0",
"awes-io/mail": "^1.0",
"awes-io/modal-window": "^1.1",
"awes-io/repository": "^1.0",
"awes-io/table-builder": "^1.0",
"begimov/thanks": "^1.1",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0"

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions