Laravel 5.5 doesn't recognize a variable

Posted 1 year ago by JokersMild85

So I'm working through the Laravel 5 Fundamentals series on episode 13 where I just created the Articles resource controller and added the Edit view... not exactly complicated stuff. However, I am receiving an error message saying that I have an undefined variable $article.

I most definitely defined the variable correctly and the code for the Edit function is basically identical to the Show function. There are no syntax errors, the function returns the articles.edit view fine but it just does not want to recognize the $article variable. Any suggestions what I am doing wrong?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.