caffeine also looks for a meta tag in addition to forms with a _token field. You could add
<meta name="csrf_token" content="{{ csrf_token() }}">
to your master view and caffeine will work on all pages.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When a session expires, I get an error and the user is not redirected to the login page.
I Already use laravel-caffeine. This happens in normal pages, I mean, without forms. " (1/1) ErrorException Trying to get property of non-object"
Any suggestions in how to fix this in a simple way without just changing the 'lifetime' => 120,?
Thanks
caffeine also looks for a meta tag in addition to forms with a _token field. You could add
<meta name="csrf_token" content="{{ csrf_token() }}">
to your master view and caffeine will work on all pages.
Please or to participate in this conversation.