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

demeteor's avatar

Automatic Session Expires on login

Hello, So My laravel login system automatically throws me a "419" once I Press Login. I tried with dd() to check my Auth and I get True as a return so I assume I get to login, but then it expires. why is that?

0 likes
5 replies
demeteor's avatar

ok solving my own question as I seem to do lately , finding answers after I psot my question.

so for everyone else having the same .csrf_token() <-- this was not executing correctly on my *.blade.php so I had to go to my master.blade.php and do this ->

worked like a charm then

Cronix's avatar

@demeteor I'm glad you got it solved. In the future, it's best to post your code that isn't working so we can narrow down the problem instead of guessing at the hundred things it could be. :)

demeteor's avatar

I keep it in mind ! thanks. new member in this community + laravel. I will browse around the awesomeness of this site. wish I could have found it earlier this week.

Any good reads/books for total laravel beginners ?

Cronix's avatar

Laracasts has a lot of free introductory videos. I'd start there. There are a lot more available if you have a subscription, which I'd highly recommend. Even if you only subscribed for a month and watch them all.

I'd start with this one, although it's not complete yet and still being worked on (new videos being added weekly): https://laracasts.com/series/laravel-from-scratch-2018

But it's just an updated version of: https://laracasts.com/series/laravel-from-scratch-2017

This is good for relationships: https://laracasts.com/series/eloquent-relationships

This is probably the most in-depth series (It's huge): https://laracasts.com/series/lets-build-a-forum-with-laravel

Have a look at them all: https://laracasts.com/series

Please or to participate in this conversation.