Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Dario Preglej
Dario Preglej
9,771 Points

http 500 error

I am using Laravel and I did same as Alena but i got a http 500 error when i implement next code: $app->add($container->get('csrf')); in middleware

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Dario Preglej! I am a bit confused by the question as Alena doesn't teach a course that uses Laravel that I'm aware of. The "container" I believe this code is referencing is part of the Slim framework. Namely, Slim version 3. I'm thinking you may have installed the incorrect framework.

If you get a 500 error, you should check your php_error.log file to see where the error is coming from.

Hope this helps! :sparkles: