Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gme's avatar
Level 1

500 Error when i try to destroy a Session

Hello,

im training with the Laravel 5.4 From Scratch: Associating With Users: Part 2 tutorial.

Now i have a Problem and cant find the Bug. When i visit /logout i get a 500 Error without any Error Messages.

Here my Files:

Routing: web.php https://pastebin.com/xVWS1UYm

Controller: SessionController.php https://pastebin.com/CBgEJiFh

I hope someone can help me :).

Best regards

0 likes
1 reply
gme's avatar
gme
OP
Best Answer
Level 1

the problem was a wrong class name in the SessionController.php

class SesssionsController extends Controller

Please or to participate in this conversation.