Skip to content

ErrorException Undefined variable: config #492

Answered by MGatner
MazAntho asked this question in Q&A
Discussion options

You must be logged in to vote

You need to pass the Config in as a a variable to your view.

...
public function login()
{
    ...
    return view('myth/login', [
        'config' => config('Auth'),
    ]);

Check the framework User Guide on View variables.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@MazAntho
Comment options

@srihidayat
Comment options

@fanmadestudio
Comment options

@manageruz
Comment options

Answer selected by MazAntho
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants